(table, v)
| 134 | orm = toORM({ |
| 135 | tables: schema.tables, |
| 136 | async count(table, v) { |
| 137 | return tableRows(db, table).filter((row) => matchesCondition(row, v.where)).length; |
| 138 | }, |
| 139 | async findFirst(table, v) { |
| 140 | return (await this.findMany(table, { ...v, limit: 1 }))[0] ?? null; |
| 141 | }, |
nothing calls this directly
no test coverage detected