(conn: mysql.PoolConnection)
| 102 | ); |
| 103 | |
| 104 | export 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 | |
| 116 | export interface Update { |
| 117 | count300: number; |
nothing calls this directly
no test coverage detected