Skip to content

What does "control attributes are not allowed unless the migrate feature is enabled and automatic test DB management is used; see docs" mean? #2903

Closed Answered by abonander
amrllkmn asked this question in Q&A
Discussion options

You must be logged in to vote

The error mentions automatic database management and to see the docs.

If you pull up the docs for #[sqlx::test] you'll see a heading titled "Automatic Test Database Management": https://docs.rs/sqlx/latest/sqlx/attr.test.html#automatic-test-database-management-requires-migrate-feature

All the information should be there.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amrllkmn
Comment options

Answer selected by abonander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants