MCPcopy Create free account
hub / github.com/damms005/devdb-vscode / buildWhereClause

Function buildWhereClause

src/services/sql.ts:13–17  ·  view source on GitHub ↗
(engine: DatabaseEngine, dialect: KnexClientType, columns: Column[], whereClause?: Record<string, any>)

Source from the content-addressed store, hash-verified

11export 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;

Callers 3

buildWhereClauseMethod · 0.90
getRowsFunction · 0.85
getTotalRowsFunction · 0.85

Calls 2

getTransformedValueFunction · 0.85

Tested by

no test coverage detected