dialect

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(str string) (*DBType, Opener)

Types

type DBType added in v0.3.0

type DBType string
const (
	MYSQL     DBType = "mysql"
	PG        DBType = "postgresql"
	SQLSERVER DBType = "sqlserver"
	SQLITE    DBType = "sqlite"
)

type MysqlOpener

type MysqlOpener struct{}

func (MysqlOpener) Open

func (MysqlOpener) Open(dsn string) (*gorm.DB, error)

type Opener

type Opener interface {
	Open(dsn string) (*gorm.DB, error)
}

type PostgresOpener

type PostgresOpener struct{}

func (PostgresOpener) Open

func (PostgresOpener) Open(dsn string) (*gorm.DB, error)

type SQLiteOpener

type SQLiteOpener struct{}

func (SQLiteOpener) Open

func (SQLiteOpener) Open(dsn string) (*gorm.DB, error)

type SqlServerOpener

type SqlServerOpener struct{}

func (SqlServerOpener) Open

func (SqlServerOpener) Open(dsn string) (*gorm.DB, error)

Jump to

Keyboard shortcuts

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