Hi is this a possible SQL transaction with `QueryB...
# box-products
r
Hi is this a possible SQL transaction with
QueryBuilder@qb
?? because I don't find transactions in the query builder official documentation https://qb.ortusbooks.com/
s
Yes. You'd just wrap your QB calls in
transaction {}
like you would a cfquery/queryexecute. QB Is still ultimately using
queryExecute()
under the hood, it's just doing a really nice job of making it manageable with buildable syntax
r
can you please guide me more about this...? with some code snippets or some syntax that helps me a lot
s
Copy code
transaction isolation="read_committed {
    wirebox.getInstance( "QueryBuilder@qb" ).from( "someTable" ).update( {'column' : 'value', 'column2' : 'value2' } );
}
r
ok I understand thanks @sknowlton ❤️