duckdb_ast

Submodules

Functions

get_schema(→ dict[str, Any])

Returns DuckDB AST jsonschema contained within package

parse_sql(→ Union[models.ErrorResponse, ...)

Parses DuckDB flavoured SQL

parse_sql_to_json(→ str)

Returns raw (unparsed) DuckDB AST JSON

Package Contents

get_schema() dict[str, Any]

Returns DuckDB AST jsonschema contained within package

parse_sql(sql: str) models.ErrorResponse | models.SuccessResponse

Parses DuckDB flavoured SQL

parse_sql_to_json(sql: str) str

Returns raw (unparsed) DuckDB AST JSON