datasource

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonDataSource added in v0.2.7

type CommonDataSource struct {
	Name string
	Info string
}

func (*CommonDataSource) DriverInfo added in v0.2.7

func (ds *CommonDataSource) DriverInfo() string

func (*CommonDataSource) DriverName added in v0.2.7

func (ds *CommonDataSource) DriverName() string

type DataSource

type DataSource interface {
	DriverName() string
	DriverInfo() string
}

type MysqlDataSource

type MysqlDataSource struct {
	Host     string
	Port     int
	DBName   string
	Username string
	Password string
	Charset  string
}

func (*MysqlDataSource) DriverInfo added in v0.2.7

func (ds *MysqlDataSource) DriverInfo() string

func (*MysqlDataSource) DriverName

func (ds *MysqlDataSource) DriverName() string

type PostgreDataSource added in v0.2.7

type PostgreDataSource struct {
	Host     string
	Port     int
	DBName   string
	Username string
	Password string
	SslMode  string
}

func (*PostgreDataSource) DriverInfo added in v0.2.7

func (ds *PostgreDataSource) DriverInfo() string

func (*PostgreDataSource) DriverName added in v0.2.7

func (ds *PostgreDataSource) DriverName() string

type SqliteDataSource added in v0.2.7

type SqliteDataSource struct {
	Path string
}

func (*SqliteDataSource) DriverInfo added in v0.2.7

func (ds *SqliteDataSource) DriverInfo() string

func (*SqliteDataSource) DriverName added in v0.2.7

func (ds *SqliteDataSource) DriverName() string

Jump to

Keyboard shortcuts

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