dao

package
v0.0.0-...-f463d71 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysqlGormDB

func GetMysqlGormDB(mydb *Mysqldb) *gorm.DB

func GetSqliteGormDB

func GetSqliteGormDB(mydb *MySqlite) *gorm.DB

func MysqlInit

func MysqlInit(MysqlConfig *Mysqldb) *gorm.DB

func New

func New() *gorm.DB

func SqliteInit

func SqliteInit(MydbConfig *MySqlite) *gorm.DB

Types

type MySqlite

type MySqlite struct {
	DBName string
}

func NewMySqlite

func NewMySqlite() *MySqlite

type Mysqldb

type Mysqldb struct {
	Addr     string
	Port     string
	DBName   string
	Username string
	Password string
}

func NewMysqldb

func NewMysqldb() *Mysqldb

Jump to

Keyboard shortcuts

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