migration

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeMysql

func InitializeMysql(db *gorm.DB)

InitializeMysql 初始化函数, 在项目启动时调用

func InitializePgsql

func InitializePgsql(db *gorm.DB)

InitializePgsql 初始化函数, 在项目启动时调用

func MigrateMysql

func MigrateMysql(db *sql.DB, mp string) error

MigrateMysql 执行数据库迁移

func MigratePgsql

func MigratePgsql(db *sql.DB, mp string) error

MigratePgsql 执行数据库迁移

Types

This section is empty.

Jump to

Keyboard shortcuts

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