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

Function test_format_semi_join_expr

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

Source from the content-addressed store, hash-verified

212
213 #[test]
214 fn test_format_semi_join_expr() {
215 let user = users();
216 let other = other();
217 let sql = user.left_semijoin(other, |u, o| u.id.eq(o.uid)).build().sql;
218 let expected = r#"SELECT "users".* FROM "users" JOIN "other" ON "users"."id" = "other"."uid""#;
219 assert_eq!(sql, expected);
220 }
221
222 #[test]
223 fn test_left_semijoin_with_where_expr() {

Callers

nothing calls this directly

Calls 5

usersFunction · 0.85
otherFunction · 0.85
buildMethod · 0.45
left_semijoinMethod · 0.45
eqMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…