UNPKG

database-proxy

Version:

Through a set of access control rules configuration database access to realize the client directly access the database via HTTP.

11 lines 497 B
import { Handler } from '../../processor'; /** * 对 query 对象进行验证 * 1. 如果配置为数组,则代表只允许数组内的字段名做为查询条件,如 ['id', 'status'] * 2. 如果配置为对象,也只允许使用对象内的字段名做为查询条件,并对每个字段做约束性检查 * @param config 验证器配置,可为数组或对象 * @param context 上下文 * @returns */ export declare const QueryHandler: Handler; //# sourceMappingURL=index.d.ts.map