(table, v)
| 19 | const orm = createTransaction({ |
| 20 | tables: schema.tables, |
| 21 | async count(table, v) { |
| 22 | return (await client.query(api.queryHandler, { |
| 23 | tableName: table.ormName, |
| 24 | query: { |
| 25 | type: "count", |
| 26 | where: v.where ? serializeWhere(v.where) : undefined, |
| 27 | }, |
| 28 | secret, |
| 29 | })) as number; |
| 30 | }, |
| 31 | async findFirst(table, v) { |
| 32 | const result = await client.query(api.queryHandler, { |
| 33 | tableName: table.ormName, |
nothing calls this directly
no test coverage detected