@dialog-db/query
Version:
Datalog query engine inspired by Datomic
17 lines • 1.13 kB
TypeScript
export function derive(source: API.DataImport): Generator<API.Fact, API.Entity>;
export function create([entity, attribute, value, cause]: [API.Entity, API.Attribute, API.Scalar, cause?: API.Link[]]): Fact;
export function link([entity, attribute, value, cause]: [API.Entity, API.Attribute, API.Scalar, cause?: API.Link[]]): API.Link<(string | bigint | boolean | API.Entity | API.Integer | API.Float | API.Bytes | API.Link<{} | null, number, number>[] | null)[], 113, 30>;
import * as API from './api.js';
declare class Fact extends Array<any> {
constructor(arrayLength?: number);
constructor(arrayLength: number);
constructor(...items: any[]);
get entity(): any;
get attribute(): any;
get value(): any;
get cause(): any;
get link(): API.Link<(string | bigint | boolean | API.Entity | API.Integer | API.Float | API.Bytes | API.Link<{} | null, number, number>[] | null)[], 113, 30>;
_link: API.Link<(string | bigint | boolean | API.Entity | API.Integer | API.Float | API.Bytes | API.Link<{} | null, number, number>[] | null)[], 113, 30> | undefined;
}
export {};
//# sourceMappingURL=fact.d.ts.map