Interface IDBProxy

Datascript related APIs

Hierarchy

  • IDBProxy

Properties

datascriptQuery: (<T>(query: string, ...inputs: any[]) => Promise<T>)

Type declaration

    • <T>(query: string, ...inputs: any[]): Promise<T>
    • Run a datascript query

      Type Parameters

      • T = any

      Parameters

      • query: string
      • Rest ...inputs: any[]

      Returns Promise<T>

onChanged: IUserHook<{
    blocks: BlockEntity[];
    txData: IDatom[];
    txMeta?: {
        outlinerOp: string;
        [key: string]: any;
    };
}, IUserOffHook>

Hook all transaction data of DB

Added

0.0.2

q: (<T>(dsl: string) => Promise<T[]>)

Type declaration

Methods

  • Subscribe a specific block changed event

    Added

    0.0.2

    Parameters

    • uuid: string
    • callback: ((block: BlockEntity, txData: IDatom[], txMeta?: {
          outlinerOp: string;
          [key: string]: any;
      }) => void)
        • (block: BlockEntity, txData: IDatom[], txMeta?: {
              outlinerOp: string;
              [key: string]: any;
          }): void
        • Parameters

          • block: BlockEntity
          • txData: IDatom[]
          • Optional txMeta: {
                outlinerOp: string;
                [key: string]: any;
            }
            • [key: string]: any
            • outlinerOp: string

          Returns void

    Returns IUserOffHook

Generated using TypeDoc