Documentation ¶
Index ¶
- Variables
- func CheckError(err error) error
- type Client
- func (c *Client) Close() error
- func (c *Client) Commit(ctx context.Context) error
- func (c *Client) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (c *Client) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (c *Client) GetDB(ctx context.Context) sqlx.ExtContext
- func (c *Client) GetSaltDB(ctx context.Context) *db.Client
- func (c *Client) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (c *Client) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)
- func (c *Client) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row
- func (c *Client) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (c *Client) Rollback(ctx context.Context) error
- func (c *Client) WithTransaction(ctx context.Context, opts *sql.TxOptions) context.Context
- type ListString
- type ListStringAnyMap
- type StringAnyMap
- type StringStringMap
- type TimeDuration
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckError ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExecContext ¶
func (*Client) GetContext ¶
func (*Client) NamedExecContext ¶
func (*Client) NamedQueryContext ¶ added in v0.7.6
func (*Client) QueryRowxContext ¶
func (*Client) QueryxContext ¶
type ListString ¶ added in v0.7.6
type ListString []string
func (*ListString) Scan ¶ added in v0.7.6
func (m *ListString) Scan(value interface{}) error
type ListStringAnyMap ¶ added in v0.8.4
func (*ListStringAnyMap) Scan ¶ added in v0.8.4
func (m *ListStringAnyMap) Scan(value interface{}) error
type StringAnyMap ¶ added in v0.6.4
func (*StringAnyMap) Scan ¶ added in v0.6.4
func (m *StringAnyMap) Scan(value any) error
type StringStringMap ¶
func (*StringStringMap) Scan ¶
func (m *StringStringMap) Scan(value interface{}) error
type TimeDuration ¶
func (*TimeDuration) Scan ¶
func (t *TimeDuration) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.