dbio

package module
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: GPL-3.0 Imports: 3 Imported by: 1

README

dbio

dbio is a golang library for all things Database, Storage, API I/O processing.

The particularly useful struct used are:

Projects using dbio:

Documentation

Index

Constants

View Source
const Version = 0.0

Version is the version

Variables

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"
	// KindAPI for Airbyte
	KindAirbyte Kind = "airbyte"
	// KindUnknown for unknown
	KindUnknown Kind = ""
)

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"
	TypeFileSftp   Type = "sftp"
	TypeFileHTTP   Type = "http"

	TypeDbPostgres   Type = "postgres"
	TypeDbRedshift   Type = "redshift"
	TypeDbMySQL      Type = "mysql"
	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"
	TypeDbClickhouse Type = "clickhouse"

	TypeAPIGit Type = "git"
)

func ValidateType

func ValidateType(tStr string) (Type, bool)

ValidateType returns true is type is valid

func (Type) DBNameUpperCase added in v0.3.294

func (t Type) DBNameUpperCase() bool

DBNameUpperCase returns true is upper case is default

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) IsAirbyte added in v0.1.0

func (t Type) IsAirbyte() bool

IsAirbyte returns true if Airbyte 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) IsNoSQL added in v0.3.126

func (t Type) IsNoSQL() bool

IsDb returns true if database connection

func (Type) IsUnknown added in v0.1.0

func (t Type) IsUnknown() bool

IsUnknown returns true if unknown

func (Type) Kind

func (t Type) Kind() Kind

Kind returns the kind of connection

func (Type) Name added in v0.3.0

func (t Type) Name() string

Name return the type name

func (Type) NameLong added in v0.3.0

func (t Type) NameLong() string

NameLong return the type long name

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