UNPKG

use-on-demand

Version:
19 lines 990 B
import { Router } from 'express'; export declare class DbRouter_Helper { } export declare class CRUD_Helper { static process_query_result(v: LowDB._Base | LowDB._Base[], // 单个元素,或是数组。 increaseOrder?: boolean): LowDB._Base[]; static array_addItem(dbDotPath: string, bean: LowDB._Base): void; static array_updateItem(dbDotPath: string, bean: LowDB._Base, primary_key?: string): void; static array_delItem(dbDotPath: string, bean: LowDB._Base): void; /** * 快速生成CRUD。 */ static crudRoute<BEAN extends LowDB._Base>(r: Router, apiDashPath: string, // 需要以【/】开头。使用【/】作为连接符。 dbDotPath: string, // 使用【.】作为连接符。 type?: 'list' | 'single_obj'): void; } export declare function lifeTasksCrud(r: Router, apiDashPath: string, // 需要以【/】开头。使用【/】作为连接符。 dbDotPath: string): void; //# sourceMappingURL=DbRouter_Helper.d.ts.map