(table, v)
| 240 | return toORM({ |
| 241 | tables: schema.tables, |
| 242 | async count(table, v) { |
| 243 | await init; |
| 244 | const model = getPrismaModel(table); |
| 245 | |
| 246 | return ( |
| 247 | await model.count({ |
| 248 | select: { |
| 249 | _all: true, |
| 250 | }, |
| 251 | where: v.where ? buildWhere(v.where) : undefined, |
| 252 | }) |
| 253 | )._all; |
| 254 | }, |
| 255 | async findFirst(table, v) { |
| 256 | await init; |
| 257 | const model = getPrismaModel(table); |
nothing calls this directly
no test coverage detected