Documentation ¶
Index ¶
- func BuildCreateONClusterSentence(mappedColumns []CHColumn, db_name string, table_name string, cluster string, ...) (query string, clusterToUse string)
- func GetClusterStatement(cluster string, defaultCluster string) (clusterStatement string, clusterToUse string)
- func GetComment(comment string, cluster string) string
- func GetTables(conn *ch.Conn, data *CHDataBase, errors *[]error) []clickhouseTable
- func MapArrayInterfaceToArrayOfStrings(in []interface{}) []string
- func MapDbData(result ch.Result) (map[string]string, error)
- func MapPartitionBy(partitionBy interface{}, mappedColumns []CHColumn) (*[]TPartitionBy, error)
- func UnmarshalComment(storedComment string) (comment string, cluster string, err error)
- func ValidateOnClusterEngine(inValue any, p hashicorpcty.Path) diag.Diagnostics
- func ValidateParams(mappedColumns []CHColumn, params []string, params_name string) error
- func ValidatePartitionBy(inValue any, p hashicorpcty.Path) diag.Diagnostics
- func ValidateType(inValue any, p hashicorpcty.Path) diag.Diagnostics
- type ApiClient
- type CHColumn
- type CHDataBase
- type CHDbResources
- type DataSourceCHTable
- type DataSourceDbsItem
- type TPartitionBy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterStatement ¶
func GetComment ¶
func MapArrayInterfaceToArrayOfStrings ¶
func MapArrayInterfaceToArrayOfStrings(in []interface{}) []string
func MapPartitionBy ¶
func MapPartitionBy(partitionBy interface{}, mappedColumns []CHColumn) (*[]TPartitionBy, error)
func UnmarshalComment ¶
func ValidateOnClusterEngine ¶
func ValidateOnClusterEngine(inValue any, p hashicorpcty.Path) diag.Diagnostics
func ValidateParams ¶
func ValidatePartitionBy ¶
func ValidatePartitionBy(inValue any, p hashicorpcty.Path) diag.Diagnostics
func ValidateType ¶
func ValidateType(inValue any, p hashicorpcty.Path) diag.Diagnostics
Types ¶
type CHColumn ¶
type CHColumn struct {
// contains filtered or unexported fields
}
func MapColumns ¶
func MapColumns(dataColumns []interface{}) []CHColumn
type CHDataBase ¶
type CHDbResources ¶
type CHDbResources struct {
TableNames []string
}
func GetResourceNamesOnDataBases ¶
func GetResourceNamesOnDataBases(conn *ch.Conn, databaseName string) (resources *CHDbResources, errors []error)
type DataSourceCHTable ¶
type DataSourceCHTable struct { Database string Table_name string Engine_full string Engine string Cluster *string Comment string Engine_params *[]string Columns []dataSourceClickhouseColumn }
func MapTableToDatasource ¶
func MapTableToDatasource(table clickhouseTable) (*DataSourceCHTable, error)
type DataSourceDbsItem ¶
type TPartitionBy ¶
type TPartitionBy struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.