This represents a Transaction writer for a given Stream.

Hierarchy

  • StreamTxnWriter

Properties

begin_txn: (() => Promise<Transaction>)

Type declaration

    • (): Promise<Transaction>
    • Create a new transaction. This returns a StreamTransaction which can be perform writes on the created transaction. It can also be used to perform commit() and abort() operations on the created transaction.

      Returns Promise<Transaction>

get_txn: ((txn_id: BigInt) => Promise<Transaction>)

Type declaration

    • (txn_id: BigInt): Promise<Transaction>
    • Get a StreamTransaction for a given transaction id.

      Parameters

      • txn_id: BigInt

      Returns Promise<Transaction>

toString: (() => string)

Type declaration

    • (): string
    • Returns the string representation the writer with its scoped stream.

      Returns string

Generated using TypeDoc