├── .eslintrc.js ├── .gitignore ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── deparse ├── package.json ├── parse ├── src ├── deparser.js ├── index.js └── utils.js ├── test ├── fixtures │ ├── complex.sql │ ├── custom.sql │ ├── param-ref.sql │ ├── query-001.sql │ ├── query-002.sql │ ├── query-003.sql │ ├── simple.sql │ └── upstream │ │ ├── abstime.sql │ │ ├── advisory_lock.sql │ │ ├── aggregates.sql │ │ ├── alter_generic.sql │ │ ├── alter_operator.sql │ │ ├── alter_table.sql │ │ ├── arrays.sql │ │ ├── async.sql │ │ ├── bit.sql │ │ ├── bitmapops.sql │ │ ├── boolean.sql │ │ ├── box.sql │ │ ├── brin.sql │ │ ├── btree_index.sql │ │ ├── case.sql │ │ ├── char.sql │ │ ├── circle.sql │ │ ├── cluster.sql │ │ ├── collate.linux.utf8.sql │ │ ├── collate.sql │ │ ├── combocid.sql │ │ ├── comments.sql │ │ ├── conversion.sql │ │ ├── copy2.sql │ │ ├── copydml.sql │ │ ├── copyselect.sql │ │ ├── create_aggregate.sql │ │ ├── create_am.sql │ │ ├── create_cast.sql │ │ ├── create_function_3.sql │ │ ├── create_index.sql │ │ ├── create_misc.sql │ │ ├── create_operator.sql │ │ ├── create_table.sql │ │ ├── create_table_like.sql │ │ ├── create_type.sql │ │ ├── create_view.sql │ │ ├── date.sql │ │ ├── dbsize.sql │ │ ├── delete.sql │ │ ├── dependency.sql │ │ ├── domain.sql │ │ ├── drop_if_exists.sql │ │ ├── drop_operator.sql │ │ ├── enum.sql │ │ ├── equivclass.sql │ │ ├── errors.sql │ │ ├── event_trigger.sql │ │ ├── float4.sql │ │ ├── float8.sql │ │ ├── foreign_data.sql │ │ ├── foreign_key.sql │ │ ├── functional_deps.sql │ │ ├── geometry.sql │ │ ├── gin.sql │ │ ├── gist.sql │ │ ├── groupingsets.sql │ │ ├── guc.sql │ │ ├── hash_index.sql │ │ ├── horology.sql │ │ ├── hs_primary_extremes.sql │ │ ├── hs_primary_setup.sql │ │ ├── hs_standby_allowed.sql │ │ ├── hs_standby_check.sql │ │ ├── hs_standby_disallowed.sql │ │ ├── hs_standby_functions.sql │ │ ├── indirect_toast.sql │ │ ├── inet.sql │ │ ├── inherit.sql │ │ ├── init_privs.sql │ │ ├── insert.sql │ │ ├── insert_conflict.sql │ │ ├── int2.sql │ │ ├── int4.sql │ │ ├── int8.sql │ │ ├── interval.sql │ │ ├── join.sql │ │ ├── json.sql │ │ ├── json_encoding.sql │ │ ├── jsonb.sql │ │ ├── limit.sql │ │ ├── line.sql │ │ ├── lock.sql │ │ ├── lseg.sql │ │ ├── macaddr.sql │ │ ├── matview.sql │ │ ├── misc_functions.sql │ │ ├── money.sql │ │ ├── name.sql │ │ ├── namespace.sql │ │ ├── numeric.sql │ │ ├── numeric_big.sql │ │ ├── numerology.sql │ │ ├── object_address.sql │ │ ├── oid.sql │ │ ├── oidjoins.sql │ │ ├── opr_sanity.sql │ │ ├── path.sql │ │ ├── pg_lsn.sql │ │ ├── plancache.sql │ │ ├── plpgsql.sql │ │ ├── point.sql │ │ ├── polygon.sql │ │ ├── polymorphism.sql │ │ ├── portals.sql │ │ ├── portals_p2.sql │ │ ├── prepare.sql │ │ ├── prepared_xacts.sql │ │ ├── privileges.sql │ │ ├── psql.sql │ │ ├── psql_crosstab.sql │ │ ├── random.sql │ │ ├── rangefuncs.sql │ │ ├── rangetypes.sql │ │ ├── regex.sql │ │ ├── regproc.sql │ │ ├── reltime.sql │ │ ├── replica_identity.sql │ │ ├── returning.sql │ │ ├── roleattributes.sql │ │ ├── rolenames.sql │ │ ├── rowsecurity.sql │ │ ├── rowtypes.sql │ │ ├── rules.sql │ │ ├── sanity_check.sql │ │ ├── security_label.sql │ │ ├── select.sql │ │ ├── select_distinct.sql │ │ ├── select_distinct_on.sql │ │ ├── select_having.sql │ │ ├── select_implicit.sql │ │ ├── select_into.sql │ │ ├── select_views.sql │ │ ├── sequence.sql │ │ ├── spgist.sql │ │ ├── stats.sql │ │ ├── strings.sql │ │ ├── subselect.sql │ │ ├── tablesample.sql │ │ ├── temp.sql │ │ ├── text.sql │ │ ├── time.sql │ │ ├── timestamp.sql │ │ ├── timestamptz.sql │ │ ├── timetz.sql │ │ ├── tinterval.sql │ │ ├── transactions.sql │ │ ├── triggers.sql │ │ ├── truncate.sql │ │ ├── tsdicts.sql │ │ ├── tsearch.sql │ │ ├── tstypes.sql │ │ ├── txid.sql │ │ ├── type_sanity.sql │ │ ├── typed_table.sql │ │ ├── union.sql │ │ ├── updatable_views.sql │ │ ├── update.sql │ │ ├── uuid.sql │ │ ├── vacuum.sql │ │ ├── varchar.sql │ │ ├── window.sql │ │ ├── with.sql │ │ ├── without_oid.sql │ │ ├── xml.sql │ │ └── xmlmap.sql └── test.js ├── verify └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/README.md -------------------------------------------------------------------------------- /deparse: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/deparse -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/package.json -------------------------------------------------------------------------------- /parse: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/parse -------------------------------------------------------------------------------- /src/deparser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/src/deparser.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/src/index.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/src/utils.js -------------------------------------------------------------------------------- /test/fixtures/complex.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/complex.sql -------------------------------------------------------------------------------- /test/fixtures/custom.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/custom.sql -------------------------------------------------------------------------------- /test/fixtures/param-ref.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/param-ref.sql -------------------------------------------------------------------------------- /test/fixtures/query-001.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/query-001.sql -------------------------------------------------------------------------------- /test/fixtures/query-002.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/query-002.sql -------------------------------------------------------------------------------- /test/fixtures/query-003.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/query-003.sql -------------------------------------------------------------------------------- /test/fixtures/simple.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/simple.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/abstime.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/abstime.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/advisory_lock.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/advisory_lock.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/aggregates.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/aggregates.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/alter_generic.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/alter_generic.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/alter_operator.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/alter_operator.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/alter_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/alter_table.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/arrays.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/arrays.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/async.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/async.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/bit.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/bit.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/bitmapops.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/bitmapops.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/boolean.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/boolean.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/box.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/box.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/brin.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/brin.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/btree_index.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/btree_index.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/case.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/case.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/char.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/char.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/circle.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/circle.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/cluster.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/cluster.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/collate.linux.utf8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/collate.linux.utf8.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/collate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/collate.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/combocid.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/combocid.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/comments.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/comments.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/conversion.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/conversion.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/copy2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/copy2.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/copydml.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/copydml.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/copyselect.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/copyselect.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_aggregate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_aggregate.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_am.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_am.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_cast.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_cast.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_function_3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_function_3.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_index.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_index.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_misc.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_misc.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_operator.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_operator.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_table.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_table_like.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_table_like.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_type.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_type.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/create_view.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/create_view.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/date.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/date.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/dbsize.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/dbsize.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/delete.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/delete.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/dependency.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/dependency.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/domain.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/domain.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/drop_if_exists.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/drop_if_exists.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/drop_operator.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/drop_operator.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/enum.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/enum.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/equivclass.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/equivclass.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/errors.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/errors.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/event_trigger.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/event_trigger.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/float4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/float4.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/float8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/float8.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/foreign_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/foreign_data.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/foreign_key.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/foreign_key.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/functional_deps.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/functional_deps.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/geometry.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/geometry.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/gin.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/gin.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/gist.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/gist.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/groupingsets.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/groupingsets.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/guc.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/guc.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/hash_index.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/hash_index.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/horology.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/horology.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/hs_primary_extremes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/hs_primary_extremes.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/hs_primary_setup.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/hs_primary_setup.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/hs_standby_allowed.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/hs_standby_allowed.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/hs_standby_check.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/hs_standby_check.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/hs_standby_disallowed.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/hs_standby_disallowed.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/hs_standby_functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/hs_standby_functions.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/indirect_toast.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/indirect_toast.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/inet.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/inet.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/inherit.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/inherit.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/init_privs.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/init_privs.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/insert.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/insert.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/insert_conflict.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/insert_conflict.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/int2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/int2.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/int4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/int4.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/int8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/int8.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/interval.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/interval.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/join.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/join.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/json.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/json.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/json_encoding.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/json_encoding.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/jsonb.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/jsonb.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/limit.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/limit.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/line.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/line.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/lock.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/lock.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/lseg.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/lseg.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/macaddr.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/macaddr.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/matview.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/matview.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/misc_functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/misc_functions.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/money.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/money.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/name.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/name.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/namespace.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/namespace.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/numeric.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/numeric.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/numeric_big.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/numeric_big.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/numerology.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/numerology.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/object_address.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/object_address.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/oid.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/oid.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/oidjoins.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/oidjoins.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/opr_sanity.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/opr_sanity.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/path.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/path.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/pg_lsn.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/pg_lsn.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/plancache.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/plancache.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/plpgsql.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/plpgsql.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/point.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/point.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/polygon.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/polygon.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/polymorphism.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/polymorphism.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/portals.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/portals.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/portals_p2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/portals_p2.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/prepare.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/prepare.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/prepared_xacts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/prepared_xacts.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/privileges.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/privileges.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/psql.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/psql.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/psql_crosstab.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/psql_crosstab.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/random.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/random.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/rangefuncs.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/rangefuncs.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/rangetypes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/rangetypes.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/regex.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/regex.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/regproc.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/regproc.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/reltime.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/reltime.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/replica_identity.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/replica_identity.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/returning.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/returning.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/roleattributes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/roleattributes.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/rolenames.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/rolenames.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/rowsecurity.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/rowsecurity.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/rowtypes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/rowtypes.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/rules.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/rules.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/sanity_check.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/sanity_check.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/security_label.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/security_label.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/select.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/select.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/select_distinct.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/select_distinct.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/select_distinct_on.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/select_distinct_on.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/select_having.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/select_having.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/select_implicit.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/select_implicit.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/select_into.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/select_into.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/select_views.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/select_views.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/sequence.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/sequence.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/spgist.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/spgist.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/stats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/stats.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/strings.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/strings.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/subselect.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/subselect.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/tablesample.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/tablesample.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/temp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/temp.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/text.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/text.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/time.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/time.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/timestamp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/timestamp.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/timestamptz.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/timestamptz.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/timetz.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/timetz.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/tinterval.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/tinterval.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/transactions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/transactions.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/triggers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/triggers.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/truncate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/truncate.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/tsdicts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/tsdicts.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/tsearch.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/tsearch.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/tstypes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/tstypes.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/txid.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/txid.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/type_sanity.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/type_sanity.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/typed_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/typed_table.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/union.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/union.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/updatable_views.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/updatable_views.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/update.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/update.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/uuid.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/uuid.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/vacuum.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/vacuum.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/varchar.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/varchar.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/window.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/window.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/with.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/with.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/without_oid.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/without_oid.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/xml.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/xml.sql -------------------------------------------------------------------------------- /test/fixtures/upstream/xmlmap.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/fixtures/upstream/xmlmap.sql -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/test/test.js -------------------------------------------------------------------------------- /verify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/verify -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhm/pg-query-parser/HEAD/yarn.lock --------------------------------------------------------------------------------