db

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func Close

func Close() (err error)

func GetDB

func GetDB() *gorm.DB

func Init

func Init(config *config.MySQLConfig) (err error)

Types

type Migration

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

func NewMigration

func NewMigration(db *gorm.DB, migrationInfo string) *Migration

func (*Migration) Migrate

func (m *Migration) Migrate()

func (*Migration) TmpMigrate

func (m *Migration) TmpMigrate() (err error)

type MigrationInfo

type MigrationInfo struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Description   string `json:"description"`
	Type          string `json:"type"`
	Deployment    string `json:"deployment"`
	Url           string `json:"url"`
	EwFilterTopic string `json:"ew_filter_topic"`
	UserID        string `json:"user_id"`
	Public        bool   `json:"public"`
}

Jump to

Keyboard shortcuts

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