(orm: ORMAdapter, table: AnyTable, where: Condition)
| 80 | } |
| 81 | |
| 82 | async function exists(orm: ORMAdapter, table: AnyTable, where: Condition) { |
| 83 | const result = await orm.findFirst(table, { |
| 84 | select: [table.getIdColumn().ormName], |
| 85 | where, |
| 86 | }); |
| 87 | |
| 88 | return result !== null; |
| 89 | } |
| 90 | |
| 91 | async function foreignKeyOnUpdate( |
| 92 | orm: ORMAdapter, |
no outgoing calls
no test coverage detected