Skip to main content
Module

x/pgsql_ast_parser/parser.ts>ParseOptions

Yet another simple Postgres SQL parser
Go to Latest
interface ParseOptions
import { type ParseOptions } from "https://deno.land/x/pgsql_ast_parser@10.5.2/parser.ts";

Properties

optional
entry: string

[Advanced usage only] This allows to parse sub-expressions, not necessarily full valid statements.

For instance, parse('2+2', {entry: 'expr'}) will return the AST of the given expression (which is not a valid statement)

optional
locationTracking: boolean

If true, then a detailed location will be available on each node