Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnType ¶
type Conn ¶
type Conn interface {
Contributors() []string
ServerVersion() (*ServerVersion, error)
Select(ctx context.Context, dest any, query string, args ...any) error
Query(ctx context.Context, query string, args ...any) (Rows, error)
QueryRow(ctx context.Context, query string, args ...any) Row
PrepareBatch(ctx context.Context, query string, opts ...PrepareBatchOption) (Batch, error)
Exec(ctx context.Context, query string, args ...any) error
// Deprecated: use context aware `WithAsync()` for any async operations
AsyncInsert(ctx context.Context, query string, wait bool, args ...any) error
Ping(context.Context) error
Stats() Stats
Close() error
}
type NamedValue ¶
type PrepareBatchOption ¶
type PrepareBatchOption func(options *PrepareBatchOptions)
func WithCloseOnFlush ¶
func WithCloseOnFlush() PrepareBatchOption
WithCloseOnFlush closes batch INSERT query when Flush is executed
func WithReleaseConnection ¶
func WithReleaseConnection() PrepareBatchOption
type PrepareBatchOptions ¶
type ServerVersion ¶
type ServerVersion = proto.ServerHandshake
Click to show internal directories.
Click to hide internal directories.