Documentation
¶
Overview ¶
Package clickhouse provides implementation of Clickhouse data warehouse
Index ¶
- Constants
- func NewClickHouseQueryMapper(opts ...Options) warehouse.QueryMapper
- func NewClickHouseTableDriver(chOptions *clickhouse.Options, database string, opts ...Options) warehouse.Driver
- func NewFieldTypeMapper() warehouse.FieldTypeMapper[SpecificClickhouseType]
- type Options
- type SpecificClickhouseType
Constants ¶
const ( // PrecisionMetadataKey is the metadata key used to store precision information for DateTime64 types PrecisionMetadataKey = "clickhouse.precision" // PrecisionMetadataValueSecond is the value indicating second precision for DateTime64 types PrecisionMetadataValueSecond = "0" )
const ClickhouseMapperName = "clickhouse"
ClickhouseMapperName is the name of the ClickHouse type mapper
Variables ¶
This section is empty.
Functions ¶
func NewClickHouseQueryMapper ¶
func NewClickHouseQueryMapper(opts ...Options) warehouse.QueryMapper
NewClickHouseQueryMapper creates a new ClickHouse query mapper.
func NewClickHouseTableDriver ¶
func NewClickHouseTableDriver(chOptions *clickhouse.Options, database string, opts ...Options) warehouse.Driver
NewClickHouseTableDriver creates a new ClickHouse table driver.
func NewFieldTypeMapper ¶
func NewFieldTypeMapper() warehouse.FieldTypeMapper[SpecificClickhouseType]
NewFieldTypeMapper creates a mapper that supports all ClickHouse types with proper circular dependency handling
Types ¶
type Options ¶
type Options func(*clickhouseQueryMapper)
Options represents a configuration option for ClickHouse query mapper.
func WithEngine ¶
WithEngine sets the engine type for ClickHouse tables.
func WithIndexGranularity ¶
WithIndexGranularity sets the index granularity for ClickHouse tables.
func WithOrderBy ¶
WithOrderBy sets the order by columns for ClickHouse tables.
func WithPartitionBy ¶
WithPartitionBy sets the partition expression for ClickHouse tables.