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

feat(postgresql): add support for multiple insert in one query using createAll() of connector #524

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

samarpanB
Copy link
Contributor

@samarpanB samarpanB commented Nov 16, 2022

BREAKING CHANGE: This drops explicit, documented support for Node.js v10, v11, v12, v13, v15, v17

Signed-off-by: Samarpan Bhattacharya this.is.samy@gmail.com

  1. Added support for multiple insert in one query using createAll() of connector.
  2. Updated some existing tests for name field of id column and added some too. This was done to test if the new getInsertedIds method works in those cases or not.

Fixes #523
See also loopbackio/loopback-next#3357

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

@@ -46,7 +46,7 @@
"juggler-v3": "file:./deps/juggler-v3",
"juggler-v4": "file:./deps/juggler-v4",
"lodash": "^4.17.4",
"loopback-datasource-juggler": "^3.0.0 || ^4.0.0",
"loopback-datasource-juggler": "^4.28.0",
Copy link
Member

@dhmlau dhmlau Nov 17, 2022

Choose a reason for hiding this comment

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

This is a breaking change, though loopback-datasource-juggle@3.x reaches EOL. Together with the discussion in #520, it might be a good time to do it.

@loopbackio/loopback-maintainers, thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes its a breaking change. So I agree to go ahead with it.

Copy link
Member

Choose a reason for hiding this comment

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

+1 for making a breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

…createAll() of connector

BREAKING CHANGE: This drops explicit, documented support for Node.js v10, v11, v12, v13, v15, v17

Signed-off-by: Samarpan Bhattacharya <this.is.samy@gmail.com>
Copy link
Member

@dhmlau dhmlau left a comment

Choose a reason for hiding this comment

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

LGTM. Please make sure CI passes before merging. Thanks.

@samarpanB
Copy link
Contributor Author

All checks passing.

Copy link
Member

@achrinza achrinza left a comment

Choose a reason for hiding this comment

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

All checks passing; LGTM 👍

@samarpanB samarpanB merged commit 4b8ce8a into master Nov 23, 2022
@samarpanB samarpanB deleted the gh-523 branch November 23, 2022 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support bulk insert in one query using newly added createAll() in connector
3 participants