This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
requestor/lib/KnexCrudHandler.ts

18 lines
414 B
TypeScript
Raw Normal View History

2020-04-16 09:44:43 +02:00
import { CrudHandler } from './CrudHandler';
export class KnexCrudHandler implements CrudHandler {
2020-04-16 09:46:06 +02:00
protected table: string;
protected columns: Array<string>;
protected options: Record<string, unknown>;
2020-04-16 09:44:43 +02:00
public constructor (
table: string,
columns: Array<string>,
options: Record<string, unknown> = {}
) {
this.table = table;
this.columns = columns;
this.options = options;
}
}