()
| 16 | let _cached: ReturnType<typeof createDrizzle> | undefined; |
| 17 | |
| 18 | export const db = () => { |
| 19 | if (!_cached) { |
| 20 | _cached = createDrizzle(); |
| 21 | |
| 22 | instrumentDrizzleClient(_cached); |
| 23 | } |
| 24 | return _cached; |
| 25 | }; |
| 26 | |
| 27 | // Use the incoming value if one exists, else fallback to the DBs existing value. |
| 28 | export const updateIfDefined = <T>(v: T | undefined, col: AnyMySqlColumn) => |
no test coverage detected