UNPKG

harperdb

Version:

HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.

46 lines (45 loc) 1.83 kB
import { DirectCondition, Id } from './ResourceInterface'; export declare const COERCIBLE_OPERATORS: { lt: boolean; le: boolean; gt: boolean; ge: boolean; ne: boolean; eq: boolean; }; export declare function executeConditions(conditions: any, operator: any, table: any, txn: any, request: any, context: any, transformToEntries: any, filtered: any): any; /** * Search for records or keys, based on the search condition, using an index if available * @param search_condition * @param transaction * @param reverse * @param Table * @param allow_full_scan * @param filtered */ export declare function searchByIndex(search_condition: DirectCondition, transaction: any, reverse: boolean, Table: any, allow_full_scan?: boolean, filtered?: boolean): AsyncIterable<Id | { key: Id; value: any; }>; export declare function findAttribute(attributes: any, attribute_name: any): any; /** * Create a filter based on the search condition that can be used to test each supplied record. * @param {SearchObject} search_condition * @returns {({}) => boolean} */ export declare function filterByType(search_condition: any, Table: any, context: any, filtered: any, is_primary_key?: any, estimated_incoming_count?: any): any; export declare function estimateCondition(table: any): (condition: any) => any; /** * This is responsible for taking a query string (from a get()) and converting it to a standard query object * structure * @param query_string */ export declare function parseQuery(query_to_parse: any): any; export declare function flattenKey(key: any): any; export declare function intersectionEstimate(store: any, left: any, right: any): number; export declare class SimpleURLQuery { url: string; constructor(url: string); get(): void; [Symbol.iterator](): ArrayIterator<any>; }