-
|
Beta Was this translation helpful? Give feedback.
Answered by
sinisaos
Jan 27, 2026
Replies: 1 comment 1 reply
-
|
@DKSCIcat No, but you can easily use a transaction for bulk inserts. Something like this. # using engine instance
async with DB.transaction():
await Band.insert(
Band(name="Pythonistas"),
Band(name="Darts"),
Band(name="Gophers"),
)or # using thru table meta
async with Band._meta.db.transaction():
await Band.insert(
Band(name="Pythonistas"),
Band(name="Darts"),
Band(name="Gophers"),
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DKSCIcat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@DKSCIcat No, but you can easily use a transaction for bulk inserts. Something like this.
or