UNPKG

@dialog-db/query

Version:

Datalog query engine inspired by Datomic

14 lines 1.07 kB
export function entity(source: {}): API.Link<{}, 113, 30>; export function create(source?: API.Fact[] | API.DataImport): API.Querier & API.Transactor<{}>; export function toLink([entity, attribute, value]: [API.Entity | null, API.Attribute | null, API.Constant | null]): API.Link<(string | bigint | boolean | API.Entity | API.Integer | API.Float | API.Bytes | null)[], 113, 30>; export function toKey(model: [API.Entity | null, API.Attribute | null, API.Constant | null]): string; export function select(model: Model, { the, of, is }: API.FactsSelector): API.Task<API.Datum[], Error>; export function transact(model: Model, transaction: API.Transaction): API.Task<{}, Error>; export function version({ data }: Model): API.Link<Record<string, API.Datum<`${string}/${string}`, API.Entity, API.Scalar>>, 113, 30>; export function dissociate({ data, index }: Model, fact: API.Fact): void; export type Model = { data: Record<string, API.Datum>; index: Record<string, Record<string, API.Datum>>; }; import * as API from '../api.js'; //# sourceMappingURL=memory.d.ts.map