db

package
v0.0.0-...-226d483 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mssql

type Mssql struct {
	*gorm.DB
}

func (*Mssql) Connect

func (m *Mssql) Connect(opt *Options) *gorm.DB

type Mysql

type Mysql struct {
	*gorm.DB
}

func (*Mysql) Connect

func (m *Mysql) Connect(opt *Options) *gorm.DB

connect mysql server

type Options

type Options struct {
	Type     string
	User     string
	Password string
	Host     string
	DbName   string
	Port     int
	Prefix   string
	Debug    bool
}

type PostgresSQL

type PostgresSQL struct {
	*gorm.DB
}

func (*PostgresSQL) Connect

func (p *PostgresSQL) Connect(opt *Options) *gorm.DB

connect postgres server

type SqlClient

type SqlClient interface {
	Connect(opt *Options) *gorm.DB
}

Jump to

Keyboard shortcuts

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