RAILGUN Reloaded
    Preparing search index...

    Type Alias Transactor<DB>

    Transactor: <T>(fn: (tx: DB) => Promise<T>) => Promise<T>

    Transaction capability supplied by a database adapter. Runs the callback atomically: every statement issued on the callback's database context is committed together or rolled back together. Adapters implement this with whatever transaction primitive their driver provides.

    Type Parameters

    • DB

    Type Declaration

      • <T>(fn: (tx: DB) => Promise<T>): Promise<T>
      • Type Parameters

        • T

        Parameters

        • fn: (tx: DB) => Promise<T>

        Returns Promise<T>