Documentation
¶
Overview ¶
Package chdocker creates one-off ClickHouse docker containers so pggen can introspect a schema. The generic container plumbing lives in internal/dbdocker; this supplies the ClickHouse-specific parts.
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 controls a running ClickHouse Docker container.
func Start ¶
Start builds a Docker image with the schema files as init scripts and runs it in a container.
func (*Client) ConnString ¶
ConnString returns the DSN for the started ClickHouse container.
func (*Client) GetContainerLogs ¶
GetContainerLogs returns all stderr and stdout logs for the container.
Click to show internal directories.
Click to hide internal directories.