Skip to content

Commit 0544ea8

Browse files
committed
Rust: Add postgres sources.
1 parent 4bbffc5 commit 0544ea8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rust/ql/lib/codeql/rust/frameworks/postgres.model.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ extensions:
1313
- ["<postgres::client::Client>::query_raw", "Argument[0]", "sql-injection", "manual"]
1414
- ["<postgres::client::Client>::query_typed", "Argument[0]", "sql-injection", "manual"]
1515
- ["<postgres::client::Client>::query_typed_raw", "Argument[0]", "sql-injection", "manual"]
16+
- addsTo:
17+
pack: codeql/rust-all
18+
extensible: sourceModel
19+
data:
20+
- ["<postgres::row::Row>::get", "ReturnValue", "database", "manual"]
21+
- ["<postgres::row::Row>::try_get", "ReturnValue.Field[core::result::Result::Ok(0)]", "database", "manual"]
22+
- ["<postgres::row::SimpleQueryRow>::get", "ReturnValue.Field[core::option::Option::Some(0)]", "database", "manual"]
23+
- ["<postgres::row::SimpleQueryRow>::try_get", "ReturnValue.Field[core::result::Result::Ok(0)].Field[core::option::Option::Some(0)]", "database", "manual"]

0 commit comments

Comments
 (0)