MCPcopy Create free account
hub / github.com/Ameobea/osutrack-api / commit

Function commit

src/dbUtil.ts:104–114  ·  view source on GitHub ↗
(conn: mysql.PoolConnection)

Source from the content-addressed store, hash-verified

102 );
103
104export const commit = (conn: mysql.PoolConnection): Promise<void> =>
105 new Promise((resolve, reject) =>
106 conn.commit(async err => {
107 if (!!err) {
108 await rollback(conn);
109 reject(err);
110 } else {
111 resolve();
112 }
113 })
114 );
115
116export interface Update {
117 count300: number;

Callers

nothing calls this directly

Calls 1

rollbackFunction · 0.85

Tested by

no test coverage detected