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

Function supported

crates/sql-parser/src/parser/sql.rs:430–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428
429 #[test]
430 fn supported() {
431 for sql in [
432 "select a from t",
433 "select a from t where x = :sender",
434 "select count(*) as n from t",
435 "select count(*) as n from t join s on t.id = s.id where s.x = 1",
436 "insert into t values (1, 2)",
437 "delete from t",
438 "delete from t where a = 1",
439 "delete from t where x = :sender",
440 "update t set a = 1, b = 2",
441 "update t set a = 1, b = 2 where c = 3",
442 "update t set a = 1, b = 2 where x = :sender",
443 ] {
444 assert!(parse_sql(sql).is_ok());
445 }
446 }
447
448 #[test]
449 fn signed_numeric_literals_are_supported_across_sql_api() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…