Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
CH *sql.DB
)
Functions ¶
func BeginOperation ¶
BeginOperation is an analogue of BeginTransaction from database package. Click House does not supports transactions (in terms of classic ACID transactions of PostgreSQL), so the name of this method has been changed to not confuse developers.
Clickhouse client tries to stay compliant with sql.DB interface, so it must define a Transaction's interface, but this transactions are not ACID.
func DataTableName ¶
func DataTableName() string
func DropTZInfo ¶
func EnsureSchema ¶
func EnsureSchema() (err error)
EnsureSchema executes provided schema definition SQL file. By default it ensures all required tables / indexes / constraints / triggers are present. In case if some table (or index, or ...) is absent - it would be recreated. Does not replaces tables in cae if them are present (to not to drop data occasionally).
Types ¶
This section is empty.