MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / test_where_multiple_predicates

Function test_where_multiple_predicates

crates/query-builder/src/lib.rs:136–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 }
135 #[test]
136 fn test_where_multiple_predicates() {
137 let q = users().r#where(|c| c.id.eq(10)).r#where(|c| c.age.gt(18)).build();
138 let expected = r#"SELECT * FROM "users" WHERE (("users"."id" = 10) AND ("users"."age" > 18))"#;
139 assert_eq!(norm(q.sql()), norm(expected));
140 }
141
142 #[test]
143 fn test_where_bool_column_directly() {

Callers

nothing calls this directly

Calls 5

usersFunction · 0.85
buildMethod · 0.45
r#whereMethod · 0.45
eqMethod · 0.45
gtMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…