( executeCommand: DatabaseExecuteCommand, onSqlCommand: ((sql: string, params?: any[]) => void) | undefined, )
| 51 | export const TABLE_NAME_PLACEHOLDER = '$tableName'; |
| 52 | |
| 53 | export const getWrappedCommand = ( |
| 54 | executeCommand: DatabaseExecuteCommand, |
| 55 | onSqlCommand: ((sql: string, params?: any[]) => void) | undefined, |
| 56 | ): DatabaseExecuteCommand => |
| 57 | onSqlCommand |
| 58 | ? async (sql, params) => { |
| 59 | onSqlCommand(sql, params); |
| 60 | return await executeCommand(sql, params); |
| 61 | } |
| 62 | : executeCommand; |
| 63 | |
| 64 | export const escapeId = (str: string) => |
| 65 | arrayJoin( |
no outgoing calls
no test coverage detected
searching dependent graphs…