dbio

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2021 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const Version = 0.0

Version is the version

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind string

Kind is the connection kind

const (
	// KindDatabase for databases
	KindDatabase Kind = "database"
	// KindFile for files (cloud, sftp)
	KindFile Kind = "file"
	// KindAPI for APIs
	KindAPI Kind = "api"
	// KindUnknown for unknown
	KindUnknown Kind = ""
)

type Type

type Type string

Type is the connection type

const (
	TypeUnknown Type = ""

	TypeFileLocal  Type = "local"
	TypeFileHDFS   Type = "hdfs"
	TypeFileS3     Type = "s3"
	TypeFileAzure  Type = "azure"
	TypeFileGoogle Type = "gs"
	TypeFileSftp   Type = "sftp"
	TypeFileHTTP   Type = "http"

	TypeDbPostgres  Type = "postgres"
	TypeDbRedshift  Type = "redshift"
	TypeDbMySQL     Type = "mysql"
	TypeDbOracle    Type = "oracle"
	TypeDbBigQuery  Type = "bigquery"
	TypeDbSnowflake Type = "snowflake"
	TypeDbSQLite    Type = "sqlite"
	TypeDbSQLServer Type = "sqlserver"
	TypeDbAzure     Type = "azuresql"
	TypeDbAzureDWH  Type = "azuredwh"

	TypeAPIGit    Type = "git"
	TypeAPIGithub Type = "github"
)

func ValidateType

func ValidateType(tStr string) (Type, bool)

ValidateType returns true is type is valid

func (Type) DefPort

func (t Type) DefPort() int

DefPort returns the default port

func (Type) IsAPI

func (t Type) IsAPI() bool

IsAPI returns true if API connection

func (Type) IsDb

func (t Type) IsDb() bool

IsDb returns true if database connection

func (Type) IsFile

func (t Type) IsFile() bool

IsFile returns true if file connection

func (Type) Kind

func (t Type) Kind() Kind

Kind returns the kind of connection

func (Type) String

func (t Type) String() string

String returns string instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL