interdb

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

README

内部存储库

全局配置数据库,是一个单例Sqlite实体,用来供给全局使用。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *gorm.DB

* * 返回数据库查询句柄 *

func Init

func Init(engine typex.RuleX, dbPath string) error

* * 初始化DAO *

func Name

func Name() string

* * 返回名称 *

func RegisterModel

func RegisterModel(dist ...interface{})

* * 注册数据模型 *

func Stop

func Stop()

* * 停止 *

Types

type SqliteDAO

type SqliteDAO struct {
	// contains filtered or unexported fields
}

* * Sqlite 数据持久层 *

Jump to

Keyboard shortcuts

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