Skip to content

feat(postgrest): add schema-based type inference to fluent query builder#2084

Draft
ivasilov wants to merge 3 commits intomasterfrom
ivasilov/fluent-query-builder
Draft

feat(postgrest): add schema-based type inference to fluent query builder#2084
ivasilov wants to merge 3 commits intomasterfrom
ivasilov/fluent-query-builder

Conversation

@ivasilov
Copy link
Member

@ivasilov ivasilov commented Feb 3, 2026

🔍 Description

This PR is a prototype for a new query builder.

carbon

The order of clauses is intentional:

  1. FROM
  2. JOIN
  3. WHERE, ORDER, LIMIT
  4. SELECT

SELECT can has to be after the JOIN. Known limitations are you can't do a nested join (join on a join).

There's more examples in the tests.

🔄 Breaking changes

  • This PR contains no breaking changes

📋 Checklist

  • I have read the Contributing Guidelines
  • My PR title follows the conventional commit format
  • I have run `npx nx format` to ensure consistent code formatting
  • I have added tests for new functionality
  • Tests and type checks pass

@coderabbitai
Copy link

coderabbitai bot commented Feb 3, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ivasilov/fluent-query-builder

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the postgrest-js Related to the postgrest-js library. label Feb 3, 2026
@coveralls
Copy link

Coverage Status

coverage: 82.883% (+0.08%) from 82.801%
when pulling cc83d0d on ivasilov/fluent-query-builder
into 7ec2df9 on master.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 3, 2026

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2084

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2084

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2084

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2084

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2084

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2084

commit: cc83d0d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

postgrest-js Related to the postgrest-js library. trigger: preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants