export class BaseRepository<T> {
constructor (
protected readonly connection: Connection,
protected readonly model: T
) {
}
async findAll(): Promise<InferModel<T>[]> {
const elements = await this.connection.select().from(this.model)
return elements
}
}
export class BaseRepository<T> {
constructor (
protected readonly connection: Connection,
protected readonly model: T
) {
}
async findAll(): Promise<InferModel<T>[]> {
const elements = await this.connection.select().from(this.model)
return elements
}
}