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

Method updateAndGet

src/Databases/DatabaseInterface.ts:40–40  ·  view source on GitHub ↗

* The updateAndGet method takes a standard UPDATE query and, * if possible, returns the record returned by the database. * If it is not possible, the repository will handle the * null value by performing an additional query. * The provided query should not contain any delimiter (like a semic

(standardUpdateQuery: SqlQuery)

Source from the content-addressed store, hash-verified

38 * This method is expected to reject the promise (throw an async exception) is no rows have been updated.
39 */
40 updateAndGet(standardUpdateQuery: SqlQuery): Promise<null|any[]>;
41};

Callers 4

updateMethod · 0.65

Implementers 3

PgSqlDatabasesrc/Databases/PgSqlDatabase.ts
MySqlDatabasesrc/Databases/MySqlDatabase.ts
SqliteDatabasesrc/Databases/SqliteDatabase.ts

Calls

no outgoing calls

Tested by

no test coverage detected