package driver
import "github.com/ClickHouse/clickhouse-go/v2/lib/driver"
Index ¶
- type Batch
- type BatchColumn
- type ColumnType
- type Conn
- type NamedDateValue
- type NamedValue
- type PrepareBatchOption
- type PrepareBatchOptions
- type Row
- type Rows
- type ServerVersion
- type Stats
Types ¶
type Batch ¶
type Batch interface { Abort() error Append(v ...any) error AppendStruct(v any) error Column(int) BatchColumn Flush() error Send() error IsSent() bool Rows() int Columns() []column.Interface }
type BatchColumn ¶
type ColumnType ¶
type ColumnType interface { Name() string Nullable() bool ScanType() reflect.Type DatabaseTypeName() string }
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 AsyncInsert(ctx context.Context, query string, wait bool, args ...any) error Ping(context.Context) error Stats() Stats Close() error }
type NamedDateValue ¶
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 Row ¶
type Rows ¶
type Rows interface { Next() bool Scan(dest ...any) error ScanStruct(dest any) error ColumnTypes() []ColumnType Totals(dest ...any) error Columns() []string Close() error Err() error }
type ServerVersion ¶
type ServerVersion = proto.ServerHandshake
type Stats ¶
Source Files ¶
- Version
- v2.34.0 (latest)
- Published
- Apr 1, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 4 minutes ago –
Tools for package owners.