sqlite3

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite3MakeMigrations

type SQLite3MakeMigrations struct {
	DATABASES []string
	MODELS    []SQLite3Model
}

SQLite3 创建迁移

type SQLite3Model

type SQLite3Model interface {
	ModelSet() *SQLite3Settings
}

模型类

type SQLite3Settings

type SQLite3Settings struct {
	model.MigrationsHandler // 迁移处理函数

	TABLE_NAME string // 表名

	// 自定义配置
	Settings model.Settings
}

SQLite3 模型设置

func (SQLite3Settings) Get

func (modelsettings SQLite3Settings) Get(name string) interface{}

获取自定义配置

func (*SQLite3Settings) Set

func (modelsettings *SQLite3Settings) Set(name string, value interface{})

设置自定义配置

Jump to

Keyboard shortcuts

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