mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
add server to monorepo.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { QueryBuilder } from "knex"
|
||||
import { QueryBuilder } from 'objection';
|
||||
|
||||
export default class BulkOperationsQueryBuilder extends QueryBuilder {
|
||||
|
||||
bulkInsert(collection) {
|
||||
const opers = [];
|
||||
|
||||
collection.forEach((dataset) => {
|
||||
const insertOper = this.insert({ ...dataset });
|
||||
opers.push(insertOper);
|
||||
});
|
||||
return Promise.all(opers);
|
||||
}
|
||||
|
||||
bulkDelete(rowsIds) {
|
||||
|
||||
}
|
||||
|
||||
bulkUpdate(dataset, whereColumn) {
|
||||
|
||||
}
|
||||
|
||||
bulkPatch(newDataset, oldDataset) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user