()
| 491 | use spacetimedb_sql_parser::ast::{SqlExpr, SqlLiteral}; |
| 492 | |
| 493 | fn module_def() -> ModuleDef { |
| 494 | build_module_def(vec![ |
| 495 | ( |
| 496 | "t", |
| 497 | ProductType::from([ |
| 498 | ("u32", AlgebraicType::U32), |
| 499 | ("f32", AlgebraicType::F32), |
| 500 | ("str", AlgebraicType::String), |
| 501 | ("arr", AlgebraicType::array(AlgebraicType::String)), |
| 502 | ]), |
| 503 | ), |
| 504 | ( |
| 505 | "s", |
| 506 | ProductType::from([ |
| 507 | ("id", AlgebraicType::identity()), |
| 508 | ("u32", AlgebraicType::U32), |
| 509 | ("arr", AlgebraicType::array(AlgebraicType::String)), |
| 510 | ("bytes", AlgebraicType::bytes()), |
| 511 | ]), |
| 512 | ), |
| 513 | ]) |
| 514 | } |
| 515 | |
| 516 | /// A wrapper around [super::parse_and_type_sql] that takes a dummy [AuthCtx] |
| 517 | fn parse_and_type_sql(sql: &str, tx: &impl SchemaView) -> TypingResult<Statement> { |
searching dependent graphs…