Documentation ¶
Index ¶
- type SqlAbst
- func (s *SqlAbst) Begin() error
- func (s *SqlAbst) BeginTx(ctx context.Context, opts *sql.TxOptions) error
- func (s *SqlAbst) BeginTxx(ctx context.Context, opts *sql.TxOptions) error
- func (s *SqlAbst) Beginx() error
- func (s *SqlAbst) Commit() error
- func (s SqlAbst) Exec(query string, args ...interface{}) (sql.Result, error)
- func (s SqlAbst) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (s SqlAbst) Get(dest interface{}, query string, args ...interface{}) error
- func (s SqlAbst) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (s SqlAbst) GetDB() *sqlx.DB
- func (s *SqlAbst) MustBegin()
- func (s *SqlAbst) MustBeginTx(ctx context.Context, opts *sql.TxOptions)
- func (s SqlAbst) MustExec(query string, args ...interface{}) sql.Result
- func (s SqlAbst) MustExecContext(ctx context.Context, query string, args ...interface{}) sql.Result
- func (s SqlAbst) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (s SqlAbst) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (s SqlAbst) NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)
- func (s SqlAbst) Prepare(query string) (*sql.Stmt, error)
- func (s SqlAbst) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
- func (s SqlAbst) PrepareNamed(query string) (*sqlx.NamedStmt, error)
- func (s SqlAbst) PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error)
- func (s SqlAbst) Preparex(query string) (*sqlx.Stmt, error)
- func (s SqlAbst) PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error)
- func (s SqlAbst) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (s SqlAbst) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (s SqlAbst) QueryRow(query string, args ...interface{}) *sql.Row
- func (s SqlAbst) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (s SqlAbst) QueryRowx(query string, args ...interface{}) *sqlx.Row
- func (s SqlAbst) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row
- func (s SqlAbst) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)
- func (s SqlAbst) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (s SqlAbst) Rebind(query string) string
- func (s *SqlAbst) Rollback() error
- func (s SqlAbst) Select(dest interface{}, query string, args ...interface{}) error
- func (s SqlAbst) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlAbst ¶
type SqlAbst struct {
// contains filtered or unexported fields
}
func NewSqlAbst ¶
func (*SqlAbst) Begin ¶
Begin begins a transaction and set the Tx object
This abstraction resulting sqlx.Tx cause the implementation using sqlx.Tx instead of sql.Tx
func (*SqlAbst) BeginTx ¶
BeginTx begins a transaction and set the Tx object
This abstraction resulting sqlx.Tx cause the implementation using sqlx.Tx instead of sql.Tx
func (SqlAbst) ExecContext ¶
func (SqlAbst) GetContext ¶
func (*SqlAbst) MustBegin ¶
func (s *SqlAbst) MustBegin()
MustBegin begins a transaction and set the Tx object
func (*SqlAbst) MustBeginTx ¶
MustBeginTx begins a transaction and set the Tx object
func (SqlAbst) MustExecContext ¶
func (SqlAbst) NamedExecContext ¶
func (SqlAbst) NamedQuery ¶
func (SqlAbst) PrepareContext ¶
func (SqlAbst) PrepareNamedContext ¶
func (SqlAbst) PreparexContext ¶
func (SqlAbst) QueryContext ¶
func (SqlAbst) QueryRowContext ¶
func (SqlAbst) QueryRowxContext ¶
func (SqlAbst) QueryxContext ¶
Click to show internal directories.
Click to hide internal directories.