(
actions: () => Promise<Return>,
)
| 358 | }; |
| 359 | |
| 360 | const transaction = async <Return>( |
| 361 | actions: () => Promise<Return>, |
| 362 | ): Promise<Return> => { |
| 363 | let result; |
| 364 | await databaseExecuteCommand('BEGIN'); |
| 365 | await tryCatch(async () => (result = await actions()), onIgnoredError); |
| 366 | await databaseExecuteCommand('END'); |
| 367 | return result as Return; |
| 368 | }; |
| 369 | |
| 370 | return [refreshSchema, loadTable, saveTable, transaction]; |
| 371 | }; |
no test coverage detected
searching dependent graphs…