Documentation ¶
Index ¶
- func Connect(driver, host, port, user, password, dbname, sslmode string) (*sql.DB, error)
- func New(sqlDB *sql.DB, logger logger.Logger) repository.Database
- func NewTxManager(db *sql.DB) transaction.TxManager
- func NewURLRepo(extractRWTx func(transaction.RWTx) (*RwTx, error)) repository.URLRepository
- type RwTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTxManager ¶
func NewTxManager(db *sql.DB) transaction.TxManager
func NewURLRepo ¶
func NewURLRepo( extractRWTx func(transaction.RWTx) (*RwTx, error), ) repository.URLRepository
Types ¶
Click to show internal directories.
Click to hide internal directories.