Documentation ¶
Index ¶
- func LogRepoReturn(logger log.Logger)
- func RepoFunctionContext(ctx context.Context, repoFunction string) (repoContext context.Context, logger log.Logger)
- type DAO
- type DBDAO
- func (dao *DBDAO) Context() context.Context
- func (dao *DBDAO) Exec(query string, args ...interface{}) (sql.Result, error)
- func (dao *DBDAO) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (dao *DBDAO) Get(dest interface{}, query string, args ...interface{}) error
- func (dao *DBDAO) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (dao *DBDAO) Logger() log.Logger
- func (dao *DBDAO) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (dao *DBDAO) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (dao *DBDAO) NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)
- func (dao *DBDAO) PrepareNamed(query string) (*sqlx.NamedStmt, error)
- func (dao *DBDAO) PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error)
- func (dao *DBDAO) Preparex(query string) (*sqlx.Stmt, error)
- func (dao *DBDAO) PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error)
- func (dao *DBDAO) Rebind(query string) string
- func (dao *DBDAO) Select(dest interface{}, query string, args ...interface{}) error
- func (dao *DBDAO) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (dao *DBDAO) Unsafe() DAO
- type Repo
- type TxDAO
- func (dao *TxDAO) Context() context.Context
- func (dao *TxDAO) Exec(query string, args ...interface{}) (sql.Result, error)
- func (dao *TxDAO) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (dao *TxDAO) Get(dest interface{}, query string, args ...interface{}) error
- func (dao *TxDAO) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (dao *TxDAO) Logger() log.Logger
- func (dao *TxDAO) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (dao *TxDAO) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (dao *TxDAO) NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)
- func (dao *TxDAO) PrepareNamed(query string) (*sqlx.NamedStmt, error)
- func (dao *TxDAO) PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error)
- func (dao *TxDAO) Preparex(query string) (*sqlx.Stmt, error)
- func (dao *TxDAO) PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error)
- func (dao *TxDAO) Rebind(query string) string
- func (dao *TxDAO) Select(dest interface{}, query string, args ...interface{}) error
- func (dao *TxDAO) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (dao *TxDAO) Unsafe() DAO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRepoReturn ¶
Types ¶
type DAO ¶
type DAO interface { Context() context.Context Logger() log.Logger Exec(query string, args ...interface{}) (sql.Result, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) Get(dest interface{}, query string, args ...interface{}) error GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error NamedExec(query string, arg interface{}) (sql.Result, error) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error) NamedQuery(query string, arg interface{}) (*sqlx.Rows, error) PrepareNamed(query string) (*sqlx.NamedStmt, error) PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error) Preparex(query string) (*sqlx.Stmt, error) PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error) Rebind(query string) string Select(dest interface{}, query string, args ...interface{}) error SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error Unsafe() DAO }
type DBDAO ¶
type DBDAO struct {
// contains filtered or unexported fields
}
func (*DBDAO) ExecContext ¶
func (*DBDAO) GetContext ¶
func (*DBDAO) NamedExecContext ¶
func (*DBDAO) NamedQuery ¶
func (*DBDAO) PrepareNamedContext ¶
func (*DBDAO) PreparexContext ¶
func (*DBDAO) SelectContext ¶
type TxDAO ¶
type TxDAO struct {
// contains filtered or unexported fields
}
func (*TxDAO) ExecContext ¶
func (*TxDAO) GetContext ¶
func (*TxDAO) NamedExecContext ¶
func (*TxDAO) NamedQuery ¶
func (*TxDAO) PrepareNamedContext ¶
func (*TxDAO) PreparexContext ¶
func (*TxDAO) SelectContext ¶
Click to show internal directories.
Click to hide internal directories.