Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) DB() (*dbx.Client, error)
- func (c *Client) Exec(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (c *Client) ExecNamed(ctx context.Context, query string, arg any) (sql.Result, error)
- func (c *Client) Healthcheck(ctx context.Context) error
- func (c *Client) RunInTransaction(ctx context.Context, txFunc db.TxFunc, opts ...db.TxOption) error
- func (c *Client) Select(ctx context.Context, ptr any, query string, args ...any) error
- func (c *Client) SelectRow(ctx context.Context, ptr any, query string, args ...any) error
- func (c *Client) Upgrade(ctx context.Context, config dbx.Config) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClientIsNotInitialized = errors.New("client is not initialized")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.