question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for insert many?

See original GitHub issue

I can’t seem to find a way to do insert of multiple entities in one query, it does seem to be supported by sqlkata. Is there a way to achieve this with insert-computation expression?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
MargaretKrutikovacommented, Oct 13, 2021

Was able to test it recently, everything works as expected. Thanks a lot for your help! This project looks like a fantastic solution to the eternal problem of having your database in sync with the code and avoiding tons of boilerplate, more robust and stable than data providers ❤️

0reactions
JordanMarrcommented, Oct 11, 2021

v0.530.0 has been published with multiple inserts via entities operation. Note that you since getId is not supported for multiple inserts, you will need to replace it with excludeColumn.

Read more comments on GitHub >

github_iconTop Results From Across the Web

db.collection.insertMany()
Inserts multiple documents into a collection. ... Given an array of documents, insertMany() inserts each document in the array into the collection.
Read more >
Insert Multiple Documents — Node.js
You can insert multiple documents using the collection.insertMany() method. The insertMany() takes an array of documents to insert into the specified ...
Read more >
Why MongoDB bulkWrite doesn't support insertMany?
So insertMany() does internally call what is effectively bulkWrite . The easy way to view this is either do db.collection.insertMany in the ...
Read more >
How to INSERT Multiple Records in SQL
Hey, folks! In this article we will be focusing on ways to Insert Multiple rows in SQL. Need of SQL Insert INTO Multiple...
Read more >
SQL Server INSERT Multiple Rows Into a Table Using One ...
This tutorial shows you how to use another form of the SQL Server INSERT statement to insert multiple rows into a table using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found