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
2020-04-16 09:44:43 +02:00

20 lines
466 B
TypeScript

import { CrudHandler } from './CrudHandler';
export class KnexCrudHandler implements CrudHandler {
private _table: string;
private _columns: Array<string>;
private _options: Record<string, unknown>;
public get table (): string { return this._table; }
public constructor (
table: string,
columns: Array<string>,
options: Record<string, unknown> = {}
) {
this.table = table;
this.columns = columns;
this.options = options;
}
}