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

Function valid

crates/expr/src/statement.rs:522–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520
521 #[test]
522 fn valid() {
523 let tx = SchemaViewer(module_def());
524
525 for sql in [
526 "select str from t",
527 "select str, arr from t",
528 "select t.str, arr from t",
529 "select * from t limit 5",
530 ] {
531 let result = parse_and_type_sql(sql, &tx);
532 assert!(result.is_ok());
533 }
534 }
535
536 #[test]
537 fn invalid() {

Callers

nothing calls this directly

Calls 3

parse_and_type_sqlFunction · 0.85
SchemaViewerClass · 0.70
module_defFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…