MCPcopy Create free account
hub / github.com/Seb-C/kiss-orm / query

Method query

src/Databases/PgSqlDatabase.ts:30–35  ·  view source on GitHub ↗
(query: SqlQuery)

Source from the content-addressed store, hash-verified

28 }
29
30 async query(query: SqlQuery): Promise<any[]> {
31 const compiledQuery = query.compile(this.indexToPlaceholder, formatIdentifier);
32 const result = await this.connection.query(compiledQuery.sql, <any[]><any>compiledQuery.params);
33
34 return result.rows;
35 }
36
37 async sequence<T>(
38 sequence: (sequenceDb: PgSqlDatabase) => Promise<T>,

Callers 2

insertAndGetMethod · 0.95
updateAndGetMethod · 0.95

Calls 2

compileMethod · 0.80
queryMethod · 0.65

Tested by

no test coverage detected