Documentation
¶
Index ¶
- type Client
- func (c *Client) Exec(ctx context.Context, database string, resourceLockName string, ...) (string, sql.Result, error)
- func (c *Client) GetConn(database string) (*sql.DB, error)
- func (c *Client) Query(ctx context.Context, database string, queryTemplate string, args ...any) (string, *sql.Rows, error)
- func (c *Client) QueryRow(ctx context.Context, database string, queryTemplate string, args ...any) (string, *sql.Row, error)
- type DatabaseNotExistError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type DatabaseNotExistError ¶ added in v0.1.13
type DatabaseNotExistError struct {
Database string
}
func (*DatabaseNotExistError) Error ¶ added in v0.1.13
func (e *DatabaseNotExistError) Error() string
Click to show internal directories.
Click to hide internal directories.