Documentation
¶
Index ¶
- type Kind
- type Template
- type Type
- func (t Type) DBNameUpperCase() bool
- func (t Type) DefPort() int
- func (t Type) IsDb() bool
- func (t Type) IsFile() bool
- func (t Type) IsNoSQL() bool
- func (t Type) IsUnknown() bool
- func (t Type) Kind() Kind
- func (t Type) Name() string
- func (t Type) NameLong() string
- func (t Type) String() string
- func (t Type) Template() (template Template, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶ added in v1.1.14
type Template struct {
Core map[string]string `yaml:"core"`
Metadata map[string]string `yaml:"metadata"`
Analysis map[string]string `yaml:"analysis"`
Function map[string]string `yaml:"function"`
GeneralTypeMap map[string]string `yaml:"general_type_map"`
NativeTypeMap map[string]string `yaml:"native_type_map"`
NativeStatsMap map[string]bool `yaml:"native_stat_map"`
Variable map[string]string `yaml:"variable"`
}
Template is a database YAML template
type Type ¶
type Type string
Type is the connection type
const ( TypeUnknown Type = "" TypeFileLocal Type = "file" TypeFileHDFS Type = "hdfs" TypeFileS3 Type = "s3" TypeFileAzure Type = "azure" TypeFileGoogle Type = "gs" TypeFileFtp Type = "ftp" TypeFileSftp Type = "sftp" TypeFileHTTP Type = "http" TypeDbPostgres Type = "postgres" TypeDbRedshift Type = "redshift" TypeDbStarRocks Type = "starrocks" TypeDbMySQL Type = "mysql" TypeDbMariaDB Type = "mariadb" TypeDbOracle Type = "oracle" TypeDbBigTable Type = "bigtable" TypeDbBigQuery Type = "bigquery" TypeDbSnowflake Type = "snowflake" TypeDbSQLite Type = "sqlite" TypeDbDuckDb Type = "duckdb" TypeDbMotherDuck Type = "motherduck" TypeDbSQLServer Type = "sqlserver" TypeDbAzure Type = "azuresql" TypeDbAzureDWH Type = "azuredwh" TypeDbTrino Type = "trino" TypeDbClickhouse Type = "clickhouse" TypeDbMongoDB Type = "mongodb" )
func ValidateType ¶
ValidateType returns true is type is valid
func (Type) DBNameUpperCase ¶
DBNameUpperCase returns true is upper case is default
Click to show internal directories.
Click to hide internal directories.