Documentation ¶
Index ¶
- type Session
- type SessionDB
- func (gs *SessionDB) Beginx() (*SessionTx, error)
- func (gs *SessionDB) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (gs *SessionDB) ExecWithReturningId(ctx context.Context, query string, args ...interface{}) (int64, error)
- func (gs *SessionDB) Get(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (gs *SessionDB) NamedExec(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (gs *SessionDB) Query(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (gs *SessionDB) Select(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (gs *SessionDB) WithTransaction(ctx context.Context, callback func(*SessionTx) error) error
- type SessionTx
- func (gtx *SessionTx) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (gtx *SessionTx) ExecWithReturningId(ctx context.Context, query string, args ...interface{}) (int64, error)
- func (gtx *SessionTx) Get(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (gtx *SessionTx) NamedExec(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (gtx *SessionTx) Query(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionDB ¶
type SessionDB struct {
// contains filtered or unexported fields
}
func GetSession ¶
func (*SessionDB) ExecWithReturningId ¶
Click to show internal directories.
Click to hide internal directories.