elioria-sst-x
    Preparing search index...

    Implements

    Index
    db: PostgresJsDatabase<packages/db/src/schema> & {}

    The db value.

    • Real database transaction. Uses Drizzle's db.transaction() which maps to postgres.js sql.begin(). The callback receives a RepoFactory that creates repository instances bound to the transaction handle (tx). If the callback throws, the transaction is rolled back automatically.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>