drivers

package
v4.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB
	Name() string
}

type Factory added in v4.0.8

type Factory struct {
	// contains filtered or unexported fields
}

func New added in v4.0.8

func New(debug bool) *Factory

func (Factory) Add added in v4.0.8

func (d Factory) Add(driver Driver)

func (Factory) Connect added in v4.0.8

func (d Factory) Connect(driver string, host string, port int, user string, password string, dbname string) *gorm.DB

func (Factory) Register added in v4.0.8

func (d Factory) Register(drivers []Driver)

type Mysql

type Mysql string

func (Mysql) Connect

func (Mysql) Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB

func (Mysql) Name added in v4.0.8

func (m Mysql) Name() string

type PostgreSql

type PostgreSql string

func (PostgreSql) Connect

func (PostgreSql) Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB

func (PostgreSql) Name added in v4.0.8

func (p PostgreSql) Name() string

Jump to

Keyboard shortcuts

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