File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,10 @@ export async function initSQLite(options: Promisable<Options>): Promise<SQLiteDB
1919 await sqlite . close ( db )
2020 }
2121 const changes : SQLiteDB [ 'changes' ] = ( ) => {
22- return sqlite . changes ( db )
22+ return sqliteModule . _sqlite3_changes ( db )
2323 }
24- const lastInsertRowId : SQLiteDB [ 'lastInsertRowId' ] = async ( ) => {
25- return await new Promise < number > ( resolve => sqlite . exec (
26- db ,
27- 'SELECT last_insert_rowid()' ,
28- ( [ id ] ) => resolve ( id as number ) ,
29- ) )
24+ const lastInsertRowId : SQLiteDB [ 'lastInsertRowId' ] = ( ) => {
25+ return sqliteModule . _sqlite3_last_insert_rowid ( db )
3026 }
3127 const stream : SQLiteDB [ 'stream' ] = async ( onData , sql , parameters ) => {
3228 for await ( const stmt of sqlite . statements ( db , sql ) ) {
You can’t perform that action at this time.
0 commit comments