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.
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){constbooks=[{title: 'Canterbury Tales'},{title: 'Moby Dick'},{title: 'Hamlet'}];returntrx.insert({name: 'Old Books'},'id').into('catalogues').then(function(ids){books.forEach((book)=>book.catalogue_id=ids[0]);returntrx('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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: