├── .github ├── FUNDING.yml └── workflows │ ├── ci.yml │ ├── docs.yml │ ├── preview-build.yml │ ├── preview-comment.yml │ ├── release.yml │ └── trigger-tests.yml ├── .gitignore ├── .prettierrc ├── .releaserc.json ├── LICENSE ├── README.md ├── docs └── v1 │ ├── assets │ ├── css │ │ └── main.css │ ├── images │ │ ├── icons.png │ │ ├── icons@2x.png │ │ ├── widgets.png │ │ └── widgets@2x.png │ └── js │ │ ├── main.js │ │ └── search.json │ ├── classes │ ├── _lib_postgrestfilterbuilder_.postgrestfilterbuilder.html │ ├── _lib_postgrestquerybuilder_.postgrestquerybuilder.html │ ├── _lib_postgrestrpcbuilder_.postgrestrpcbuilder.html │ ├── _lib_postgresttransformbuilder_.postgresttransformbuilder.html │ ├── _lib_types_.postgrestbuilder.html │ └── _postgrestclient_.postgrestclient.html │ ├── globals.html │ ├── index.html │ ├── interfaces │ ├── _lib_types_.postgrestresponsebase.html │ ├── _lib_types_.postgrestresponsefailure.html │ ├── _lib_types_.postgrestresponsesuccess.html │ └── _lib_types_.postgrestsingleresponsesuccess.html │ ├── modules │ ├── _index_.html │ ├── _lib_constants_.html │ ├── _lib_postgrestfilterbuilder_.html │ ├── _lib_postgrestquerybuilder_.html │ ├── _lib_postgrestrpcbuilder_.html │ ├── _lib_postgresttransformbuilder_.html │ ├── _lib_types_.html │ ├── _lib_version_.html │ └── _postgrestclient_.html │ └── spec.json ├── jest.config.js ├── package.json ├── src ├── PostgrestBuilder.ts ├── PostgrestClient.ts ├── PostgrestError.ts ├── PostgrestFilterBuilder.ts ├── PostgrestQueryBuilder.ts ├── PostgrestTransformBuilder.ts ├── constants.ts ├── index.ts ├── select-query-parser │ ├── parser.ts │ ├── result.ts │ ├── types.ts │ └── utils.ts ├── types.ts └── version.ts ├── test ├── basic.test.ts ├── db │ ├── 00-schema.sql │ ├── 01-dummy-data.sql │ └── docker-compose.yml ├── filters.test.ts ├── index.test-d.ts ├── issue-1354.test-d.ts ├── max-affected.test.ts ├── override-types.test-d.ts ├── relationships-aggregate-operations.test.ts ├── relationships-error-handling.test.ts ├── relationships-join-operations.test.ts ├── relationships-spread-operations.test.ts ├── relationships.test.ts ├── resource-embedding.test.ts ├── returns.test-d.ts ├── rpc.test.ts ├── scripts │ └── update-json-type.js ├── select-query-parser │ ├── default-inference.test-d.ts │ ├── parser.test-d.ts │ └── types.test-d.ts ├── smoke.cjs ├── smoke.mjs ├── testSequencer.js ├── transforms.test.ts ├── types.generated-with-options-postgrest13.ts ├── types.generated.ts ├── types.override-with-options-postgrest13.ts ├── types.override.ts ├── types.ts └── version-and-constants.test.ts ├── tsconfig.json ├── tsconfig.test.json ├── tstyche.config.json └── wrapper.mjs /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.github/workflows/preview-build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.github/workflows/preview-build.yml -------------------------------------------------------------------------------- /.github/workflows/preview-comment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.github/workflows/preview-comment.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/trigger-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.github/workflows/trigger-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | docs/v2 4 | *.log 5 | 6 | # nyc 7 | coverage 8 | .nyc_output 9 | 10 | .idea 11 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.prettierrc -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/.releaserc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/README.md -------------------------------------------------------------------------------- /docs/v1/assets/css/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/assets/css/main.css -------------------------------------------------------------------------------- /docs/v1/assets/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/assets/images/icons.png -------------------------------------------------------------------------------- /docs/v1/assets/images/icons@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/assets/images/icons@2x.png -------------------------------------------------------------------------------- /docs/v1/assets/images/widgets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/assets/images/widgets.png -------------------------------------------------------------------------------- /docs/v1/assets/images/widgets@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/assets/images/widgets@2x.png -------------------------------------------------------------------------------- /docs/v1/assets/js/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/assets/js/main.js -------------------------------------------------------------------------------- /docs/v1/assets/js/search.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/assets/js/search.json -------------------------------------------------------------------------------- /docs/v1/classes/_lib_postgrestfilterbuilder_.postgrestfilterbuilder.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/classes/_lib_postgrestfilterbuilder_.postgrestfilterbuilder.html -------------------------------------------------------------------------------- /docs/v1/classes/_lib_postgrestquerybuilder_.postgrestquerybuilder.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/classes/_lib_postgrestquerybuilder_.postgrestquerybuilder.html -------------------------------------------------------------------------------- /docs/v1/classes/_lib_postgrestrpcbuilder_.postgrestrpcbuilder.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/classes/_lib_postgrestrpcbuilder_.postgrestrpcbuilder.html -------------------------------------------------------------------------------- /docs/v1/classes/_lib_postgresttransformbuilder_.postgresttransformbuilder.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/classes/_lib_postgresttransformbuilder_.postgresttransformbuilder.html -------------------------------------------------------------------------------- /docs/v1/classes/_lib_types_.postgrestbuilder.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/classes/_lib_types_.postgrestbuilder.html -------------------------------------------------------------------------------- /docs/v1/classes/_postgrestclient_.postgrestclient.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/classes/_postgrestclient_.postgrestclient.html -------------------------------------------------------------------------------- /docs/v1/globals.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/globals.html -------------------------------------------------------------------------------- /docs/v1/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/index.html -------------------------------------------------------------------------------- /docs/v1/interfaces/_lib_types_.postgrestresponsebase.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/interfaces/_lib_types_.postgrestresponsebase.html -------------------------------------------------------------------------------- /docs/v1/interfaces/_lib_types_.postgrestresponsefailure.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/interfaces/_lib_types_.postgrestresponsefailure.html -------------------------------------------------------------------------------- /docs/v1/interfaces/_lib_types_.postgrestresponsesuccess.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/interfaces/_lib_types_.postgrestresponsesuccess.html -------------------------------------------------------------------------------- /docs/v1/interfaces/_lib_types_.postgrestsingleresponsesuccess.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/interfaces/_lib_types_.postgrestsingleresponsesuccess.html -------------------------------------------------------------------------------- /docs/v1/modules/_index_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_index_.html -------------------------------------------------------------------------------- /docs/v1/modules/_lib_constants_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_lib_constants_.html -------------------------------------------------------------------------------- /docs/v1/modules/_lib_postgrestfilterbuilder_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_lib_postgrestfilterbuilder_.html -------------------------------------------------------------------------------- /docs/v1/modules/_lib_postgrestquerybuilder_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_lib_postgrestquerybuilder_.html -------------------------------------------------------------------------------- /docs/v1/modules/_lib_postgrestrpcbuilder_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_lib_postgrestrpcbuilder_.html -------------------------------------------------------------------------------- /docs/v1/modules/_lib_postgresttransformbuilder_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_lib_postgresttransformbuilder_.html -------------------------------------------------------------------------------- /docs/v1/modules/_lib_types_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_lib_types_.html -------------------------------------------------------------------------------- /docs/v1/modules/_lib_version_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_lib_version_.html -------------------------------------------------------------------------------- /docs/v1/modules/_postgrestclient_.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/modules/_postgrestclient_.html -------------------------------------------------------------------------------- /docs/v1/spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/docs/v1/spec.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/package.json -------------------------------------------------------------------------------- /src/PostgrestBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/PostgrestBuilder.ts -------------------------------------------------------------------------------- /src/PostgrestClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/PostgrestClient.ts -------------------------------------------------------------------------------- /src/PostgrestError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/PostgrestError.ts -------------------------------------------------------------------------------- /src/PostgrestFilterBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/PostgrestFilterBuilder.ts -------------------------------------------------------------------------------- /src/PostgrestQueryBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/PostgrestQueryBuilder.ts -------------------------------------------------------------------------------- /src/PostgrestTransformBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/PostgrestTransformBuilder.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/select-query-parser/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/select-query-parser/parser.ts -------------------------------------------------------------------------------- /src/select-query-parser/result.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/select-query-parser/result.ts -------------------------------------------------------------------------------- /src/select-query-parser/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/select-query-parser/types.ts -------------------------------------------------------------------------------- /src/select-query-parser/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/select-query-parser/utils.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/version.ts: -------------------------------------------------------------------------------- 1 | export const version = '0.0.0-automated' 2 | -------------------------------------------------------------------------------- /test/basic.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/basic.test.ts -------------------------------------------------------------------------------- /test/db/00-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/db/00-schema.sql -------------------------------------------------------------------------------- /test/db/01-dummy-data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/db/01-dummy-data.sql -------------------------------------------------------------------------------- /test/db/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/db/docker-compose.yml -------------------------------------------------------------------------------- /test/filters.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/filters.test.ts -------------------------------------------------------------------------------- /test/index.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/index.test-d.ts -------------------------------------------------------------------------------- /test/issue-1354.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/issue-1354.test-d.ts -------------------------------------------------------------------------------- /test/max-affected.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/max-affected.test.ts -------------------------------------------------------------------------------- /test/override-types.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/override-types.test-d.ts -------------------------------------------------------------------------------- /test/relationships-aggregate-operations.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/relationships-aggregate-operations.test.ts -------------------------------------------------------------------------------- /test/relationships-error-handling.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/relationships-error-handling.test.ts -------------------------------------------------------------------------------- /test/relationships-join-operations.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/relationships-join-operations.test.ts -------------------------------------------------------------------------------- /test/relationships-spread-operations.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/relationships-spread-operations.test.ts -------------------------------------------------------------------------------- /test/relationships.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/relationships.test.ts -------------------------------------------------------------------------------- /test/resource-embedding.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/resource-embedding.test.ts -------------------------------------------------------------------------------- /test/returns.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/returns.test-d.ts -------------------------------------------------------------------------------- /test/rpc.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/rpc.test.ts -------------------------------------------------------------------------------- /test/scripts/update-json-type.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/scripts/update-json-type.js -------------------------------------------------------------------------------- /test/select-query-parser/default-inference.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/select-query-parser/default-inference.test-d.ts -------------------------------------------------------------------------------- /test/select-query-parser/parser.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/select-query-parser/parser.test-d.ts -------------------------------------------------------------------------------- /test/select-query-parser/types.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/select-query-parser/types.test-d.ts -------------------------------------------------------------------------------- /test/smoke.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/smoke.cjs -------------------------------------------------------------------------------- /test/smoke.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/smoke.mjs -------------------------------------------------------------------------------- /test/testSequencer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/testSequencer.js -------------------------------------------------------------------------------- /test/transforms.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/transforms.test.ts -------------------------------------------------------------------------------- /test/types.generated-with-options-postgrest13.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/types.generated-with-options-postgrest13.ts -------------------------------------------------------------------------------- /test/types.generated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/types.generated.ts -------------------------------------------------------------------------------- /test/types.override-with-options-postgrest13.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/types.override-with-options-postgrest13.ts -------------------------------------------------------------------------------- /test/types.override.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/types.override.ts -------------------------------------------------------------------------------- /test/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/types.ts -------------------------------------------------------------------------------- /test/version-and-constants.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/test/version-and-constants.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/tsconfig.test.json -------------------------------------------------------------------------------- /tstyche.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/tstyche.config.json -------------------------------------------------------------------------------- /wrapper.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/postgrest-js/HEAD/wrapper.mjs --------------------------------------------------------------------------------