UNPKG

@useorbis/db-sdk

Version:

Orbis' Typescript SDK for building open-data experiences.

103 lines (102 loc) 2.84 kB
/** * * AGGREGATE OPERATORS * */ declare const $sum: (column: string, alias?: string, distinct?: boolean) => { [x: string]: { $sum: { $expr: string; $distinct: boolean | undefined; }; }; }; declare const $count: (column: string, alias?: string, distinct?: boolean) => { [x: string]: { $count: { $expr: string; $distinct: boolean | undefined; }; }; }; /** * * COLUMN OPERATORS * */ declare const $as: (column: string, alias: string) => { [x: string]: { $as: string; }; }; /** * * LOGICAL OPERATORS * */ declare const $and: (...conditions: any) => { $and: any; }; declare const $or: (...conditions: any) => { $or: any; }; /** * * COMPARISON OPERATORS * */ declare const $between: (rangeStart: number, rangeEnd: number) => { $between: { $min: number; $max: number; }; }; declare const inOperator: (...conditionParams: Array<string | number | boolean>) => { $in: (string | number | boolean)[]; }; declare const $notIn: (...conditionParams: Array<string | number | boolean>) => { $nin: (string | number | boolean)[]; }; declare const $eq: (compareValue: string | number) => { $eq: string | number; }; declare const $neq: (compareValue: string | number) => { $neq: string | number; }; declare const $gt: (compareValue: number) => { $gt: number; }; declare const $gte: (compareValue: number) => { $gte: number; }; declare const $lt: (compareValue: number) => { $lt: number; }; declare const $lte: (compareValue: number) => { $lte: number; }; declare const $contains: (compareValue: string) => { $contains: string; }; declare const $icontains: (compareValue: string) => { $icontains: string; }; declare const $startsWith: (compareValue: string) => { $startsWith: string; }; declare const $istartsWith: (compareValue: string) => { $istartsWith: string; }; declare const $endsWith: (compareValue: string) => { $endsWith: string; }; declare const $iendsWith: (compareValue: string) => { $iendsWith: string; }; declare const $like: (compareValue: string) => { $like: string; }; declare const $ilike: (compareValue: string) => { $ilike: string; }; export { $sum, $sum as sum, $count, $count as count, $as, $as as as, $and, $and as and, $or, $or as or, inOperator as $in, inOperator as inOp, $notIn, $notIn as notIn, $between, $between as between, $eq, $eq as eq, $neq, $neq as neq, $gt, $gt as gt, $gte, $gte as gte, $lt, $lt as lt, $lte, $lte as lte, $contains, $contains as contains, $icontains, $icontains as icontains, $startsWith, $startsWith as startsWith, $istartsWith, $istartsWith as istartsWith, $endsWith, $endsWith as endsWith, $iendsWith, $iendsWith as iendsWith, $like, $like as like, $ilike, $ilike as ilike, };