prorm API Reference
    Preparing search index...

    Class ImmudbStore

    ImmudbStore wraps an immudb-node client behind the shared ledger surface. append performs a verifiedSet (returning the write's transaction id), get a verifiedGet, history returns prior revisions of a key, verify returns the full verified-read response (value + proof), and query runs embedded SQL via sqlQuery.

    Implements

    Index
    name: "immudb" = 'immudb'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "immudb-node" = 'immudb-node'

    The client library being used

    • Append data under the key <table>:<data.id> (or <table> if data has no id) via a verified, tamper-evident write. Returns the write's transaction id/hash from immudb's response.

      Parameters

      • table: string
      • data: unknown

      Returns Promise<string>

    • Verified read of the current value at <table>:<id> (or <table>).

      Parameters

      • table: string
      • Optionalid: string

      Returns Promise<unknown>

    • Return every prior revision of the key <table>:<id> (or <table>).

      Parameters

      • table: string
      • Optionalid: string

      Returns Promise<unknown>

    • Verified read returning the full response - value plus the cryptographic inclusion proof immudb generates for verifiedGet. The presence of a resolved response (rather than a thrown verification error) is the proof that the value is consistent with the tamper-evident log.

      Parameters

      • table: string
      • Optionalid: string

      Returns Promise<unknown>

    • Run a SQL statement against immudb's embedded SQL engine (sqlQuery).

      Parameters

      • statement: string
      • Optionalparams: unknown

      Returns Promise<unknown>

    • Execute a SQL DDL/DML statement via sqlExec (no rows returned).

      Parameters

      • statement: string
      • Optionalparams: unknown

      Returns Promise<unknown>