2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/frappe/core/dbHandler.ts
2022-05-23 16:18:21 +05:30

21 lines
427 B
TypeScript

import { Frappe } from 'frappe/core/frappe';
type SingleValue = { fieldname: string; parent: string; value: unknown };
export class DbHandler {
frappe: Frappe;
constructor(frappe: Frappe) {
this.frappe = frappe;
}
init() {}
close() {}
exists(doctype: string, name: string): boolean {
return false;
}
getSingleValues(...fieldnames: Omit<SingleValue, 'value'>[]): SingleValue[] {
return [];
}
}