sqlite

package
v0.0.0-...-82269be Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormConnection

func GormConnection(config Config) (db *gorm.DB, err error)

获取GORM的SQLite数据库连接

Types

type Config

type Config struct {
	Filepath  string `json:"Filepath"`  // 文件地址
	Password  string `json:"Password"`  // 调试时数据库密码
	DebugMode bool   `json:"DebugMode"` // 开启SQL调试模式
}

SQLite的配置信息格式

Jump to

Keyboard shortcuts

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