Documentation
¶
Index ¶
- type Manager
- func (dm *Manager) IsDockerAvailable() (installed bool, running bool)
- func (dm *Manager) StartWithSchema(ctx context.Context, stmts *models.SQLStatements, version, name string) (*clickhouse.Client, func(), error)
- func (dm *Manager) VerifyWithDocker(ctx context.Context, stmts *models.SQLStatements, version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
}
func (*Manager) IsDockerAvailable ¶
IsDockerAvailable checks whether Docker is installed and running. Returns (installed, running).
func (*Manager) StartWithSchema ¶
func (dm *Manager) StartWithSchema(ctx context.Context, stmts *models.SQLStatements, version, name string) (*clickhouse.Client, func(), error)
StartWithSchema spins up a ClickHouse container, loads the given statements, and returns a connected client. The caller must call the returned cleanup function when done.
func (*Manager) VerifyWithDocker ¶
func (dm *Manager) VerifyWithDocker(ctx context.Context, stmts *models.SQLStatements, version string) error
VerifyWithDocker spins up a temporary ClickHouse container and verifies the SQL statements.
Click to show internal directories.
Click to hide internal directories.