db

package
v0.0.0-...-c4f60fb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableDrivers

func GetAvailableDrivers() (names []string)

func GetDataSourceName

func GetDataSourceName(c *DataSourceConfig) string

Types

type DataSourceConfig

type DataSourceConfig struct {
	Driver Driver
	Path   string
	Host   string
	Port   string
	User   string
	Passwd string
	Schema string
}

func NewDataSourceConfig

func NewDataSourceConfig(
	driver Driver,
	host, path, port, user, passwd, schema string,
) *DataSourceConfig

type Driver

type Driver interface {
	GetName() string
	GetVersion() string
}

func GetDriver

func GetDriver(name string) (driver Driver, ok bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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