Return compact query analysis facts for a SELECT or set operation.
Return compact query analysis facts for a SELECT or set operation.
Optionaloptions: AnalyzeQueryOptionsParse SQL and annotate the AST with inferred type information.
Format SQL with explicit guard limits.
Generate SQL from an AST.
Generate SQL from a standalone DataType AST node.
Get supported dialects in this build.
Per-dialect builds return only "generic" and the selected dialect.
Get library version.
Parse a standalone SQL data type.
Tokenize SQL into a token stream.
Transpile SQL from one dialect to another.
Optionaloptions: TranspileOptionsPer-dialect builds only support same-dialect and to/from Generic transpilation. Use Polyglot.getDialects to check available dialects.
StaticgetGet or create the Polyglot instance. The WASM module is automatically initialized on import.
Main Polyglot class for object-oriented usage.