You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Sometimes I need to get columns that were inserted in a batch insert, like in createReturning.
Example: Get generated columns like id, computed columns like createdAt.
Change Future<void> bulkCreate(...) to Future<Iterable<PrimaryKeyType>> bulkCreate(...). This might be a slight breaking change but since you can assign Iterable<PrimaryKeyType> to void it should be fine.
I agree that this would be nice to have 👍 It is possible, but definitely a lot of work since it touches all backends + isolates + web workers for the transport. And then we have to provide the API for both the core Batch as well as the manager APIs.
Is your feature request related to a problem? Please describe.
Sometimes I need to get columns that were inserted in a batch insert, like in
createReturning
.Example: Get generated columns like
id
, computed columns likecreatedAt
.Currently
bulkCreate
returnsFuture<void>
.Describe the solution you'd like
Future<void> bulkCreate(...)
toFuture<Iterable<PrimaryKeyType>> bulkCreate(...)
. This might be a slight breaking change but since you can assignIterable<PrimaryKeyType>
tovoid
it should be fine.Future<Iterable<ArticleData>> bulkCreateReturning(...)
.I don't know the inner batch implementation but I think it should be feasible to implement this.
The text was updated successfully, but these errors were encountered: