There was an error while loading. Please reload this page.
1 parent c90d271 commit e7a50d3Copy full SHA for e7a50d3
sqlx-cli/README.md
@@ -126,3 +126,13 @@ variable to `true`.
126
127
If you want to make this the default, just add it to your `.env` file. `cargo sqlx prepare` will
128
still do the right thing and connect to the database.
129
+
130
+#### Include queries behind feature flags (such as queryies inside of tests)
131
132
+In order for sqlx to be able to find queries behind certain feature flags you need to turn them
133
+on by passing arguments to rustc.
134
135
+This is how you would turn all targets and features on.
136
+```bash
137
+cargo sqlx prepare -- --all-targets --all-features
138
+```
0 commit comments