14 lines
271 B
TypeScript
14 lines
271 B
TypeScript
|
|
/**
|
||
|
|
* Base repository class with common query methods
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type { TBindValue, TQueryFunction } from './types.ts';
|
||
|
|
|
||
|
|
export abstract class BaseRepository {
|
||
|
|
protected query: TQueryFunction;
|
||
|
|
|
||
|
|
constructor(queryFn: TQueryFunction) {
|
||
|
|
this.query = queryFn;
|
||
|
|
}
|
||
|
|
}
|