initialize

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gorm

func Gorm() *gorm.DB

Gorm initialize the metadata database and store gorm DB with a global ref

func GormMysql

func GormMysql() *gorm.DB

GormMysql 初始化Mysql数据库

func GormPgSql

func GormPgSql() *gorm.DB

GormPgSql 初始化 Postgresql 数据库

func GormSqlite

func GormSqlite() *gorm.DB

GormSqlite 初始化 Sqlite 数据库

func Init

func Init(configFilepath *string)

func RegisterTables

func RegisterTables(db *gorm.DB)

RegisterTables register metadata tables

Types

This section is empty.

Jump to

Keyboard shortcuts

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