(engine: DatabaseEngine, dialect: KnexClientType, columns: Column[], whereClause?: Record<string, any>)
| 11 | export const SqlService = { |
| 12 | |
| 13 | buildWhereClause(engine: DatabaseEngine, dialect: KnexClientType, columns: Column[], whereClause?: Record<string, any>): WhereEntry[] { |
| 14 | if (!whereClause) return [] |
| 15 | |
| 16 | return buildWhereClause(engine, dialect, whereClause, columns); |
| 17 | }, |
| 18 | |
| 19 | async getRows(engine: DatabaseEngine, dialect: KnexClientType, connection: knexlib.Knex | null, table: string, columns: Column[], limit: number, offset: number, whereClause?: Record<string, any>): Promise<QueryResponse | undefined> { |
| 20 | if (!connection) return; |
no test coverage detected