database

package
v0.0.0-...-36127f2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbFactory

type DbFactory interface {
	Ping() bool
}

type FactoryConfig

type FactoryConfig struct {
	ConnStr  string
	ConnType string
}

func (*FactoryConfig) NewDbFactory

func (fc *FactoryConfig) NewDbFactory() DbFactory

type MySql

type MySql struct {
	*FactoryConfig
}

func NewMySql

func NewMySql(fc *FactoryConfig) *MySql

func (*MySql) Ping

func (my *MySql) Ping() bool

type Postgres

type Postgres struct {
	*FactoryConfig
}

func NewPostgres

func NewPostgres(fc *FactoryConfig) *Postgres

func (*Postgres) Ping

func (p *Postgres) Ping() bool

type Sqlite

type Sqlite struct {
	*FactoryConfig
}

func NewSqlite

func NewSqlite(fc *FactoryConfig) *Sqlite

func (*Sqlite) Ping

func (sq *Sqlite) Ping() bool

Jump to

Keyboard shortcuts

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