database

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

Functions

func CurrentDatabase

func CurrentDatabase() string

func DeleteAllTables

func DeleteAllTables() error

func Gorm

func Gorm() *gorm.DB

Gorm init gorm

func GormMysqlConfig

func GormMysqlConfig()

func GormSqliteConfig

func GormSqliteConfig()

func TableName

func TableName(obj interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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