parseTableDefinition
parseTableDefinition(
ql):Partial<TableAST>
Defined in: schema/ast/parser.ts:89
Parses a DEFINE TABLE statement into a partial TableAST.
Parameters
Section titled “Parameters”string
The raw SurrealQL DEFINE TABLE statement
Returns
Section titled “Returns”Partial<TableAST>
Partial TableAST (fields, indexes, events are populated separately)
Example
Section titled “Example”const table = parseTableDefinition("DEFINE TABLE user SCHEMAFULL");// { name: "user", type: "NORMAL", schemafull: true, ... }