sqlite

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(log logger.Interface) (types.ORM, error)

Types

type Configuration

type Configuration struct {
	// 数据库文件路径
	FilePath string
	// 空闲连接数
	MaxIdleConns int
	// 最大连接数
	MaxOpenConns int
	// 连接可复用的时间
	ConnMaxLifetime time.Duration
}

func (*Configuration) CheckConfig

func (c *Configuration) CheckConfig() error

func (*Configuration) InitDataBase

func (c *Configuration) InitDataBase(loger logger.Interface) (*gorm.DB, error)

Jump to

Keyboard shortcuts

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