Documentation
¶
Index ¶
- Constants
- func Init()
- type Client
- func (c *Client) Begin(ctx context.Context) error
- func (c *Client) Commit() error
- func (c *Client) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (c *Client) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
- func (c *Client) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (c *Client) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (c *Client) Rollback() error
- type Error
Constants ¶
View Source
const ( ErrTxActive = Error("another transaction is already active") ErrTxInactive = Error("there is no active transaction") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExecContext ¶
func (*Client) PrepareContext ¶
func (*Client) QueryContext ¶
func (*Client) QueryRowContext ¶
Click to show internal directories.
Click to hide internal directories.