Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDBProxy

Datascript related APIs

Hierarchy

  • IDBProxy

Index

Properties

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

Hook all transaction data of DB

added

0.0.2

Methods

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

    Type parameters

    • T = any

    Parameters

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

    Returns Promise<T>

  • Subscribe a specific block changed event

    added

    0.0.2

    Parameters

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

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

          Returns void

    Returns IUserOffHook

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

Generated using TypeDoc