-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sum batch results for inserts (#1641)
* Sum batch results for inserts When executing a batch insert, the number of inserted rows is the sum of the batch rows instead of the count. Making this distinction allows extensions of batch insert like ``` class MyBatchInsertStatement( table: Table, ) : BatchInsertStatement(table) { override fun prepareSQL(transaction: Transaction) = buildString { append(super.prepareSQL(transaction)) append(" ON CONFLICT (id) DO NOTHING") } } ``` where the return value of `execute` is still accurate. * Add test
- Loading branch information
1 parent
4789feb
commit 73c9972
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters