Skip to content

Commit 2df565c

Browse files
committed
Rust: Add options.yml and sqlx 'query cache' (result of 'sqlx prepare') so that the query test can function.
1 parent 28d0ad9 commit 2df565c

File tree

5 files changed

+40
-1
lines changed

5 files changed

+40
-1
lines changed

rust/ql/test/query-tests/security/CWE-089/.sqlx/query-c996a36820ff0b98021fa553b09b6da5ed65c28f666a68c4d73a1918f0eaa6f6.json

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| 0 |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
qltest_cargo_check: true
2+
qltest_dependencies:
3+
- reqwest = { version = "0.12.9", features = ["blocking"] }
4+
- sqlx = { version = "0.8", features = ["mysql", "sqlite", "postgres", "runtime-async-std", "tls-native-tls"] }
5+
- futures = { version = "0.3" }

rust/ql/test/query-tests/security/CWE-089/sqlx.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ use sqlx::Executor;
2222
* sqlx migrate run
2323
* ```
2424
*
25-
* Build and run:
25+
* Build and run with the provided `cargo.toml.manual`:
2626
* ```
27+
* cp cargo.toml.manual cargo.toml
2728
* cargo run
2829
* ```
2930
*

0 commit comments

Comments
 (0)