The structs and enums of db/schema.jai, which must have the shape generate writes: one
declaration per line of the form Name :: struct @note(...) {, then name: Type; @note per
field line, then a } in the first column. Structs without @pg_table are not tables and are
skipped. Anything else in a table struct or an enum is a problem naming the line.
- text: the contents of the schema file.
parse_schema_text :: (text: string) -> (Schema_Description, problem: string)
The structs and enums of db/schema.jai, which must have the shape generate writes: one
declaration per line of the form Name :: struct @note(...) {, then name: Type; @note per
field line, then a } in the first column. Structs without @pg_table are not tables and are
skipped. Anything else in a table struct or an enum is a problem naming the line.
Parameters
- text: string
- the contents of the schema file.
Returns
- problem: string