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 Row
- type Rows
- type ServerVersion
- type Stats
Types ¶
type Batch ¶
type Batch interface { Abort() error Append(v ...interface{}) error AppendStruct(v interface{}) error Column(int) BatchColumn Flush() error Send() error IsSent() bool }
type BatchColumn ¶
type BatchColumn interface { Append(interface{}) error }
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 interface{}, query string, args ...interface{}) error Query(ctx context.Context, query string, args ...interface{}) (Rows, error) QueryRow(ctx context.Context, query string, args ...interface{}) Row PrepareBatch(ctx context.Context, query string) (Batch, error) Exec(ctx context.Context, query string, args ...interface{}) error AsyncInsert(ctx context.Context, query string, wait bool) error Ping(context.Context) error Stats() Stats Close() error }
type NamedDateValue ¶
type NamedValue ¶
type NamedValue struct { Name string Value interface{} }
type Row ¶
type Row interface { Err() error Scan(dest ...interface{}) error ScanStruct(dest interface{}) error }
type Rows ¶
type Rows interface { Next() bool Scan(dest ...interface{}) error ScanStruct(dest interface{}) error ColumnTypes() []ColumnType Totals(dest ...interface{}) error Columns() []string Close() error Err() error }
type ServerVersion ¶
type ServerVersion = proto.ServerHandshake
type Stats ¶
Source Files ¶
- Version
- v2.4.1
- Published
- Nov 22, 2022
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 1 hour ago –
Tools for package owners.