Documentation ¶
Index ¶
- Variables
- type FileType
- type Kind
- type Template
- type Type
- func (t Type) DBNameUpperCase() bool
- func (t Type) DefPort() int
- func (t Type) GetTemplateValue(path string) (value string)
- 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) Quote(field string, normalize ...bool) string
- func (t Type) QuoteNames(names ...string) (newNames []string)
- func (t Type) String() string
- func (t Type) Template() (template Template, err error)
- func (t Type) Unquote(field string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var AllFileType = []struct { Value FileType TSName string }{ {FileTypeNone, "FileTypeNone"}, {FileTypeCsv, "FileTypeCsv"}, {FileTypeXml, "FileTypeXml"}, {FileTypeExcel, "FileTypeExcel"}, {FileTypeJson, "FileTypeJson"}, {FileTypeParquet, "FileTypeParquet"}, {FileTypeAvro, "FileTypeAvro"}, {FileTypeSAS, "FileTypeSAS"}, {FileTypeJsonLines, "FileTypeJsonLines"}, {FileTypeIceberg, "FileTypeIceberg"}, {FileTypeDelta, "FileTypeDelta"}, {FileTypeRaw, "FileTypeRaw"}, }
View Source
var AllKind = []struct { Value Kind TSName string }{ {KindDatabase, "KindDatabase"}, {KindFile, "KindFile"}, {KindUnknown, "KindUnknown"}, }
View Source
var AllType = []struct { Value Type TSName string }{ {TypeUnknown, "TypeUnknown"}, {TypeFileLocal, "TypeFileLocal"}, {TypeFileHDFS, "TypeFileHDFS"}, {TypeFileS3, "TypeFileS3"}, {TypeFileAzure, "TypeFileAzure"}, {TypeFileGoogle, "TypeFileGoogle"}, {TypeFileFtp, "TypeFileFtp"}, {TypeFileSftp, "TypeFileSftp"}, {TypeFileHTTP, "TypeFileHTTP"}, {TypeDbPostgres, "TypeDbPostgres"}, {TypeDbRedshift, "TypeDbRedshift"}, {TypeDbStarRocks, "TypeDbStarRocks"}, {TypeDbMySQL, "TypeDbMySQL"}, {TypeDbMariaDB, "TypeDbMariaDB"}, {TypeDbOracle, "TypeDbOracle"}, {TypeDbBigTable, "TypeDbBigTable"}, {TypeDbBigQuery, "TypeDbBigQuery"}, {TypeDbSnowflake, "TypeDbSnowflake"}, {TypeDbSQLite, "TypeDbSQLite"}, {TypeDbD1, "TypeDbD1"}, {TypeDbDuckDb, "TypeDbDuckDb"}, {TypeDbMotherDuck, "TypeDbMotherDuck"}, {TypeDbSQLServer, "TypeDbSQLServer"}, {TypeDbAzure, "TypeDbAzure"}, {TypeDbAzureDWH, "TypeDbAzureDWH"}, {TypeDbTrino, "TypeDbTrino"}, {TypeDbClickhouse, "TypeDbClickhouse"}, {TypeDbElasticsearch, "TypeDbElasticsearch"}, {TypeDbMongoDB, "TypeDbMongoDB"}, {TypeDbPrometheus, "TypeDbPrometheus"}, {TypeDbProton, "TypeDbProton"}, }
Functions ¶
This section is empty.
Types ¶
type FileType ¶ added in v1.2.19
type FileType string
const ( FileTypeNone FileType = "" FileTypeCsv FileType = "csv" FileTypeXml FileType = "xml" FileTypeExcel FileType = "xlsx" FileTypeJson FileType = "json" FileTypeParquet FileType = "parquet" FileTypeAvro FileType = "avro" FileTypeSAS FileType = "sas7bdat" FileTypeJsonLines FileType = "jsonlines" FileTypeIceberg FileType = "iceberg" FileTypeDelta FileType = "delta" FileTypeRaw FileType = "raw" )
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" TypeDbD1 Type = "d1" TypeDbDuckDb Type = "duckdb" TypeDbMotherDuck Type = "motherduck" TypeDbSQLServer Type = "sqlserver" TypeDbAzure Type = "azuresql" TypeDbAzureDWH Type = "azuredwh" TypeDbTrino Type = "trino" TypeDbClickhouse Type = "clickhouse" TypeDbMongoDB Type = "mongodb" TypeDbElasticsearch Type = "elasticsearch" TypeDbPrometheus Type = "prometheus" TypeDbProton Type = "proton" )
func ValidateType ¶
ValidateType returns true is type is valid
func (Type) DBNameUpperCase ¶
DBNameUpperCase returns true is upper case is default
func (Type) GetTemplateValue ¶ added in v1.2.15
func (Type) QuoteNames ¶ added in v1.2.15
Click to show internal directories.
Click to hide internal directories.