Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelInputProperties ¶ added in v0.45.0
type ModelInputProperties struct {
SQL string `mapstructure:"sql"`
}
func (*ModelInputProperties) Validate ¶ added in v0.45.0
func (p *ModelInputProperties) Validate() error
type ModelOutputProperties ¶ added in v0.45.0
type ModelOutputProperties struct { Table string `mapstructure:"table"` Materialize *bool `mapstructure:"materialize"` UniqueKey []string `mapstructure:"unique_key"` IncrementalStrategy drivers.IncrementalStrategy `mapstructure:"incremental_strategy"` // Typ to materialize the model into. Possible values include `TABLE`, `VIEW` or `DICTIONARY`. Optional. Typ string `mapstructure:"type"` // Columns sets the column names and data types. If unspecified these are detected from the select query by clickhouse. // It is also possible to set indexes with this property. // Example : (id UInt32, username varchar, email varchar, created_at datetime, INDEX idx1 username TYPE set(100) GRANULARITY 3) Columns string `mapstructure:"columns"` // EngineFull can be used to set the table parameters like engine, partition key in SQL format without setting individual properties. // It also allows creating dictionaries using a source. // Example: // ENGINE = MergeTree // PARTITION BY toYYYYMM(__time) // ORDER BY __time // TTL d + INTERVAL 1 MONTH DELETE EngineFull string `mapstructure:"engine_full"` // Engine sets the table engine. Default: MergeTree Engine string `mapstructure:"engine"` // OrderBy sets the order by clause. Default: tuple() for MergeTree and not set for other engines OrderBy string `mapstructure:"order_by"` // PartitionBy sets the partition by clause. PartitionBy string `mapstructure:"partition_by"` // PrimaryKey sets the primary key clause. PrimaryKey string `mapstructure:"primary_key"` // SampleBy sets the sample by clause. SampleBy string `mapstructure:"sample_by"` // TTL sets ttl for column and table. TTL string `mapstructure:"ttl"` // TableSettings set the table specific settings. TableSettings string `mapstructure:"table_settings"` // QuerySettings sets the settings clause used in insert/create table as select queries. QuerySettings string `mapstructure:"query_settings"` // DistributedSettings is table settings for distributed table. DistributedSettings string `mapstructure:"distributed.settings"` // DistributedShardingKey is the sharding key for distributed table. DistributedShardingKey string `mapstructure:"distributed.sharding_key"` }
func (*ModelOutputProperties) Validate ¶ added in v0.45.0
func (p *ModelOutputProperties) Validate(opts *drivers.ModelExecuteOptions) error
type ModelResultProperties ¶ added in v0.45.0
Click to show internal directories.
Click to hide internal directories.