Why is createMany missing? #20105
-
|
Why does async ports(qty: number) {
for (let i = 0; i < qty; i++) {
await prisma.port.create({
data: {
name: DataGenerator.Port.makePortName()
}
});
}As you can see this function is meant to insert "ports" into Prisma on a massive scale hence the for loop. I want to use createMany for this but it seems as if it doesn't exist. How do I get createMany to appear?
|
Beta Was this translation helpful? Give feedback.
Answered by
a-random-lemurian
Jul 7, 2023
Replies: 1 comment 2 replies
-
|
Welp, turns out createMany is not supported by SQLite.. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
a-random-lemurian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welp, turns out createMany is not supported by SQLite..