lendb-server
Version:
`LenDB Server` is a wrapper around another database called Acebase that acts like a client. Think of it as parse-server and firebase had baby then voilah!!! `Hello World!!` LenDB is born.
28 lines (27 loc) • 1.1 kB
TypeScript
export default class iLenQueryFilter {
filters: any;
sorts: {
[any: string]: "ASC" | "DESC" | null;
};
skip: number;
limit: number;
page: number;
like(field: string, value: any, pattern: "both" | "left" | "right"): this;
notLike(field: string, value: string, pattern: "both" | "left" | "right"): this;
gt(field: string, value: any): this;
gte(field: string, value: any): this;
between(field: string, value: any): this;
notBetween(field: string, value: any): this;
lt(field: string, value: any): this;
lte(field: string, value: any): this;
eq(field: string, value: any): this;
notEq(field: string, value: any): this;
in(field: string, value: any[]): this;
notIn(field: string, value: any[]): this;
matches(field: string, value: any[]): this;
notMatches(field: string, value: any[]): this;
has(field: string, value: any[]): this;
notHas(field: string, value: any[]): this;
contains(field: string, value: any[]): this;
notContains(field: string, value: any[]): this;
}