Documentation ¶
Index ¶
- func CommitPrepared(ctx context.Context, dbConn sqlx.ExecerContext, txID string) error
- func Connect(ctx context.Context, conf *config.DB) (*sqlx.DB, error)
- func CreateUser(ctx context.Context, dbConn NamedExecutorContext, user *User) error
- func Disconnect(ctx context.Context, dbConn *sqlx.DB) error
- func PrepareTransaction(ctx context.Context, dbConn sqlx.ExecerContext, txID string) error
- func RollbackPrepared(ctx context.Context, dbConn sqlx.ExecerContext, txID string) error
- type NamedExecutorContext
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitPrepared ¶
func CreateUser ¶
func CreateUser(ctx context.Context, dbConn NamedExecutorContext, user *User) error
func Disconnect ¶
Disconnect drops db connection.
func PrepareTransaction ¶
func RollbackPrepared ¶
Types ¶
type NamedExecutorContext ¶
Click to show internal directories.
Click to hide internal directories.