Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyCommitted = errors.New("already committed") ErrUnexpectedSessionType = errors.New("unexpected session type") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
Logger *zap.SugaredLogger
DB *sqlx.DB
}
func (*DB) NewSession ¶
func (s *DB) NewSession(ctx context.Context) (*SQLxTxSession, error)
type SQLxTxSession ¶
func (*SQLxTxSession) Abort ¶
func (s *SQLxTxSession) Abort() error
func (*SQLxTxSession) Commit ¶
func (s *SQLxTxSession) Commit() error
func (*SQLxTxSession) SQLxTx ¶
func (s *SQLxTxSession) SQLxTx() *sqlx.Tx
Click to show internal directories.
Click to hide internal directories.