dbrx

package
v1.39.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientIsNotInitialized = errors.New("client is not initialized")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...dbx.Option) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) DB

func (c *Client) DB() (*dbx.Client, error)

func (*Client) Exec

func (c *Client) Exec(ctx context.Context, query string, args ...any) (sql.Result, error)

func (*Client) ExecNamed

func (c *Client) ExecNamed(ctx context.Context, query string, arg any) (sql.Result, error)

func (*Client) Healthcheck

func (c *Client) Healthcheck(ctx context.Context) error

func (*Client) RunInTransaction

func (c *Client) RunInTransaction(ctx context.Context, txFunc db.TxFunc, opts ...db.TxOption) error

func (*Client) Select

func (c *Client) Select(ctx context.Context, ptr any, query string, args ...any) error

func (*Client) SelectRow

func (c *Client) SelectRow(ctx context.Context, ptr any, query string, args ...any) error

func (*Client) Upgrade

func (c *Client) Upgrade(ctx context.Context, config dbx.Config) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL