Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds the postgres nulls support #645

Closed
wants to merge 2 commits into from
Closed

adds the postgres nulls support #645

wants to merge 2 commits into from

Conversation

yab94
Copy link

@yab94 yab94 commented Dec 10, 2020

Hi,

I made this PR to add a postgresql specific fonctionnality on ORDER BY clauses :

POSTGRESQL DOC :
https://www.postgresql.org/docs/8.3/queries-order.html

It allows ORDER BY clauses like :

SELECT field FROM table ORDER BY field ASC NULLS FIRST;

This commit adds to the "QuerySort" type a new optional "nulls" props and concat it to the returned SQL clause.

I set the "nulls" props type to string but it could probably be a fixed ENUM with NULLS FIRST | NULLS LAST.

@yab94 yab94 closed this Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants