package driver
import "github.com/ClickHouse/clickhouse-go/v2/lib/driver"
Index ¶
- type Batch
- type BatchColumn
- type Block
- type Conn
- type NamedValue
- type Row
- type Rows
- type ServerVersion
- type Stats
Types ¶
type Batch ¶
type Batch interface { Append(v ...interface{}) error Column(int) BatchColumn Send() error }
type BatchColumn ¶
type BatchColumn interface { Append(interface{}) error }
type Block ¶
type Block interface { Rows() int }
type Conn ¶
type Conn interface { 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 Ping(context.Context) error Stats() Stats Close() error }
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 Totals(dest ...interface{}) error Columns() []string Close() error Err() error }
type ServerVersion ¶
type ServerVersion = proto.ServerHandshake
type Stats ¶
Source Files ¶
- Version
- v2.0.0-alpha.2
- Published
- Jan 18, 2022
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 8 minutes ago –
Tools for package owners.