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

Multiple updates to SelectBuilder and PostgresCursor #285

Merged
merged 3 commits into from
Nov 29, 2018

Conversation

lundibundi
Copy link
Member

  • support multiple tables in 'FROM'
  • proper complex key escaping (i.e. table.field)
  • support for innerJoin
  • support for Include category in PostgresCursor

lib/pg.utils.js Outdated
@@ -136,6 +137,23 @@ const buildWhere = query => {
}).join(' AND '), params];
};

const expand = (object, schema) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't 'expand' the object, it actually 'compacts' it. I think it'd be better to name it fitToSchema or frameInSchema etc?

Copy link
Member Author

@lundibundi lundibundi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @belochub and @nechaido changes.

@belochub belochub changed the title WiP: Multiple updates to SelectBuilder and PostgresCursor Multiple updates to SelectBuilder and PostgresCursor Nov 29, 2018
lundibundi and others added 3 commits November 30, 2018 00:59
* support multiple tables in 'FROM'
* proper complex key escaping (i.e. table.field)
* support for innerJoin
* support for Include category in PostgresCursor

PR-URL: #285

Co-authored-by: Mykola Bilochub <nbelochub@gmail.com>
PR-URL: #285

Co-authored-by: Dmytro Nechai <nechaido@gmail.com>
@belochub belochub merged commit 4666083 into master Nov 29, 2018
@nechaido nechaido deleted the pg-cursor-updates branch March 20, 2019 10:27
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

3 participants