(
table: table,
options?: CountOptions<table>,
)
| 593 | } |
| 594 | |
| 595 | async count<table extends AnyTable>( |
| 596 | table: table, |
| 597 | options?: CountOptions<table>, |
| 598 | ): Promise<number> { |
| 599 | let query: QueryForTable<table> = this.query(asQueryTableInput(table)) |
| 600 | |
| 601 | if (options?.where) { |
| 602 | query = query.where(options.where) |
| 603 | } |
| 604 | |
| 605 | return query.count() |
| 606 | } |
| 607 | |
| 608 | async update< |
| 609 | table extends AnyTable, |
nothing calls this directly
no test coverage detected