Skip to content

Commit

Permalink
Rust: Add options.yml and sqlx 'query cache' (result of 'sqlx prepare…
Browse files Browse the repository at this point in the history
…') so that the query test can function.
  • Loading branch information
geoffw0 committed Nov 19, 2024
1 parent 28d0ad9 commit 2df565c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| 0 |
5 changes: 5 additions & 0 deletions rust/ql/test/query-tests/security/CWE-089/options.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
qltest_cargo_check: true
qltest_dependencies:
- reqwest = { version = "0.12.9", features = ["blocking"] }
- sqlx = { version = "0.8", features = ["mysql", "sqlite", "postgres", "runtime-async-std", "tls-native-tls"] }
- futures = { version = "0.3" }
3 changes: 2 additions & 1 deletion rust/ql/test/query-tests/security/CWE-089/sqlx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ use sqlx::Executor;
* sqlx migrate run
* ```
*
* Build and run:
* Build and run with the provided `cargo.toml.manual`:
* ```
* cp cargo.toml.manual cargo.toml
* cargo run
* ```
*
Expand Down

0 comments on commit 2df565c

Please sign in to comment.