File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ interface IDBConnection {
435435 ) => void ;
436436 detach : ( alias : string , callback : ( result : StatementResult ) => void ) => void ;
437437 transaction : ( fn : ( tx : Transaction ) => boolean ) => void ;
438+ asyncTransaction : ( fn : ( tx : AsyncTransaction ) => Promise < boolean > ) => void
438439 loadSqlFile : (
439440 location : string ,
440441 callback : ( result : FileLoadResult ) => void
@@ -507,6 +508,9 @@ export const openDatabase = (
507508 transaction : ( fn : ( tx : Transaction ) => boolean ) : void => {
508509 QuickSQLite . transaction ( options . name , fn ) ;
509510 } ,
511+ asyncTransaction : ( fn : ( tx : AsyncTransaction ) => Promise < boolean > ) : void => {
512+ return QuickSQLite . asyncTransaction ( options . name , fn ) ;
513+ } ,
510514 close : ( ok : any , fail : any ) => {
511515 try {
512516 QuickSQLite . close ( options . name ) ;
You can’t perform that action at this time.
0 commit comments