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

Method insertAndGet

src/Databases/PgSqlDatabase.ts:63–68  ·  view source on GitHub ↗
(standardInsertQuery: SqlQuery)

Source from the content-addressed store, hash-verified

61 }
62
63 async insertAndGet(standardInsertQuery: SqlQuery): Promise<number[]|string[]|any[]> {
64 return this.query(sql`
65 ${standardInsertQuery}
66 RETURNING *;
67 `);
68 }
69
70 async updateAndGet(standardUpdateQuery: SqlQuery): Promise<null|any[]> {
71 return this.query(sql`

Callers

nothing calls this directly

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected