database

package
v0.0.0-...-2cdf4dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoInTx

func DoInTx(db *sqlx.DB, f func(tx *sqlx.Tx) (interface{}, error)) (interface{}, error)

func GetTx

func GetTx(ctx context.Context) (*sqlx.Tx, bool)

func NewAccount

func NewAccount(db *sqlx.DB) entity.AccountRepository

func NewTransaction

func NewTransaction(db *sqlx.DB) transaction.Transaction

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL