@@ -149,24 +149,24 @@ export class WorkerWrappedAsyncDatabaseConnection<Config extends ResolvedWebSQLO
149149 async close ( ) : Promise < void > {
150150 // Abort any pending lock requests.
151151 this . lockAbortController . abort ( ) ;
152- await this . baseConnection . close ( ) ;
152+ await this . withRemote ( ( ) => this . baseConnection . close ( ) ) ;
153153 this . options . remote [ Comlink . releaseProxy ] ( ) ;
154154 this . options . onClose ?.( ) ;
155155 }
156156
157157 execute ( sql : string , params ?: any [ ] ) : Promise < ProxiedQueryResult > {
158- return this . baseConnection . execute ( sql , params ) ;
158+ return this . withRemote ( ( ) => this . baseConnection . execute ( sql , params ) ) ;
159159 }
160160
161161 executeRaw ( sql : string , params ?: any [ ] ) : Promise < any [ ] [ ] > {
162- return this . baseConnection . executeRaw ( sql , params ) ;
162+ return this . withRemote ( ( ) => this . baseConnection . executeRaw ( sql , params ) ) ;
163163 }
164164
165165 executeBatch ( sql : string , params ?: any [ ] ) : Promise < ProxiedQueryResult > {
166- return this . baseConnection . executeBatch ( sql , params ) ;
166+ return this . withRemote ( ( ) => this . baseConnection . executeBatch ( sql , params ) ) ;
167167 }
168168
169169 getConfig ( ) : Promise < ResolvedWebSQLOpenOptions > {
170- return this . baseConnection . getConfig ( ) ;
170+ return this . withRemote ( ( ) => this . baseConnection . getConfig ( ) ) ;
171171 }
172172}
0 commit comments