Documentation
¶
Index ¶
Constants ¶
View Source
const ContextKey key = iota
ContextKey to get transaction
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
Context of transaction
func NewContext ¶ added in v0.9.11
func NewContext() *Context
NewContext return new instance of Context
type Tx ¶
type Tx interface {
sq.BaseRunner
Rollback() error
Commit() error
}
Tx is interface for *db.Tx
type UseHandler ¶ added in v0.9.10
type UseHandler struct {
*Context
sq.BaseRunner
}
UseHandler responsible to handle transaction
Click to show internal directories.
Click to hide internal directories.