MCPcopy Create free account
hub / github.com/constructive-io/pgsql-parser / deparse

Method deparse

packages/deparser/src/deparser.ts:167–169  ·  view source on GitHub ↗

* Static method to deparse PostgreSQL AST nodes to SQL * @param query - Can be: * - ParseResult from libpg-query (e.g., { version: 170004, stmts: [...] }) * - Wrapped ParseResult node (e.g., { ParseResult: {...} }) * - Wrapped RawStmt node (e.g., { RawStmt: {...} }) * - Array

(query: Node | Node[] | t.ParseResult, opts: DeparserOptions = {})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

deparseQueryMethod · 0.95
RawStmtMethod · 0.95
SelectStmtMethod · 0.95
ResTargetMethod · 0.95
AliasMethod · 0.95
formatTypeModsMethod · 0.95
CreateStmtMethod · 0.95

Calls 2

visitMethod · 0.95
deparseQueryMethod · 0.80

Tested by

no test coverage detected