Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransactionManager<C, P>

Class for managing database transactions.

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Protected connMan

connMan: ConnectionManager<P>

Methods

Abstract begin

  • begin(): Promise<this>

Abstract commit

  • commit(): Promise<this>

Abstract getConnection

  • getConnection(): C
  • Get the underlying connection object, which should be a single connection from the connection pool upon which queries can be executed.

    Returns C

Abstract getTransactionState

Abstract rollback

  • rollback(): Promise<this>

Generated using TypeDoc