Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pgsql_ast_parser/syntax/ast.ts>CommentStatement

Yet another simple Postgres SQL parser
Latest
interface CommentStatement
implements PGNode
import { type CommentStatement } from "https://deno.land/x/pgsql_ast_parser@12.0.1/syntax/ast.ts";

Properties

type: "comment"
comment: string
on: { type:
| "table"
| "database"
| "index"
| "materialized view"
| "trigger"
| "type"
| "view"
; name: QName; } | { type: "column"; column: QColumn; }

This is not exhaustive compared to https://www.postgresql.org/docs/13/sql-comment.html But this is what's supported. File an issue if you want more.