| 279 | } |
| 280 | |
| 281 | export interface QueryableBaseDriver { |
| 282 | query(stmt: string): Promise<DatabaseResultSet>; |
| 283 | transaction(stmts: string[]): Promise<DatabaseResultSet[]>; |
| 284 | |
| 285 | // This is optional. We can always fallback to multiple query |
| 286 | // This is just optimization for driver that support batch query |
| 287 | batch?(stmts: string[]): Promise<DatabaseResultSet[]>; |
| 288 | } |
| 289 | |
| 290 | export abstract class BaseDriver { |
| 291 | // Flags |
no outgoing calls
no test coverage detected
searching dependent graphs…