@omneedia/client-js
Version:
Isomorphic Javascript client for Omneedia
45 lines • 1.56 kB
TypeScript
export default class OmneediaQueryDB {
private TABLE;
private SELECT;
private INSERT;
private UPDATE;
private DELETE;
private WHERE;
private ref;
private request;
private FilterOperator;
constructor(table: string, ref: any);
rangeLt(key: string, value: any): this;
rangeGt(key: string, value: any): this;
rangeLte(key: string, value: any): this;
rangeGte(key: string, value: any): this;
rangeAdjacent(key: string, value: any): this;
overlaps(key: string, value: any): this;
not(key: string, value: any, o: any): this;
is(key: string, value: any): this;
contains(key: string, value: any): this;
containedBy(key: any, value: any): this;
or(key: any): this;
and(key: any): this;
textSearch(key: string, value: any, o: any): this;
in(key: string, value: any): this;
nxr(key: string, value: any): this;
sl(key: string, value: any): this;
adj(key: string, value: any): this;
imatch(key: any): this;
match(key: any): this;
gt(key: string, value: string): this;
gte(key: string, value: string): this;
lt(key: string, value: string): this;
lte(key: string, value: string): this;
neq(key: string, value: string): this;
like(key: string, value: string): this;
ilike(key: string, value: string): this;
eq(key: string, value: string): this;
select(...s: any): this;
insert(o: any): this;
update(o: any): this;
delete(): this;
then(resolve: any, reject: any): Promise<any>;
}
//# sourceMappingURL=db.d.ts.map