Is your feature request related to a problem? Please describe.
It would be nice if Transactions would be supported too.
Describe the solution you'd like
I would like the examples from knex to work
// Using trx as a query builder:
knex.transaction(function(trx) {
const books = [
{title: 'Canterbury Tales'},
{title: 'Moby Dick'},
{title: 'Hamlet'}
];
return trx
.insert({name: 'Old Books'}, 'id')
.into('catalogues')
.then(function(ids) {
books.forEach((book) => book.catalogue_id = ids[0]);
return trx('books').insert(books);
});
})
.then(function(inserts) {
console.log(inserts.length + ' new books saved.');
})
.catch(function(error) {
// If we get here, that means that neither the 'Old Books' catalogues insert,
// nor any of the books inserts will have taken place.
console.error(error);
});
Describe alternatives you've considered
Maybe have list of what and what is not supported bei the querylab
Is your feature request related to a problem? Please describe.
It would be nice if Transactions would be supported too.
Describe the solution you'd like
I would like the examples from knex to work
Describe alternatives you've considered
Maybe have list of what and what is not supported bei the querylab