Documentation ¶
Index ¶
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
}
Client can be used to write data to a ClickHouse instance. The client can be created via the NewClient function.
func NewClient ¶
func NewClient(address, username, password, database, dialTimeout, connMaxLifetime string, maxIdleConns, maxOpenConns int, asyncInsert, waitForAsyncInsert bool) (*Client, error)
NewClient returns a new client for ClickHouse. The client can then be used to write data to ClickHouse via the "Write" method.
func (*Client) BufferAdd ¶ added in v0.10.0
BufferAdd adds a new row to the Clickhouse buffer. This doesn't write the added row. To write the rows in the buffer the `write` method must be called.
func (*Client) BufferWrite ¶ added in v0.10.0
BufferWrite writes a list of rows from the buffer to the configured ClickHouse instance.
Click to show internal directories.
Click to hide internal directories.