Skip to main content
Module

x/pgsql_ast_parser/ast-mapper.ts

Yet another simple Postgres SQL parser
Go to Latest
import * as pgsqlAstParser from "https://deno.land/x/pgsql_ast_parser@10.5.2/ast-mapper.ts";

Classes

Can be used to modify an AST.

Functions

An helper function that returns a map of an array, but:

  • It will return the original array if it is null-ish
  • It will remove all null-ish entries
  • It will return the original array if nothing has changed

An helper function that returns a copy of an object with modified properties (similar to Object.assign()), but ONLY if thos properties have changed. Will return the original object if not.

Builds an AST modifier based on the default implementation, merged with the one you provide.