Skip to main content
Module

x/pgsql_ast_parser/mod.ts>parseWithComments

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

Parse an AST from SQL, and get the comments

Parameters

sql: string
optional
options: ParseOptions

Returns

{ ast: Statement[]; comments: PGComment[]; }