db

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDataSource *gorm.DB
)

Functions

func CreateEnumTypes

func CreateEnumTypes(db *gorm.DB, enumStatements ...string) error

func CreateTables

func CreateTables(db *gorm.DB, models ...interface{}) error

CreateTables creates database tables for the given models using GORM's AutoMigrate function.

func DropTables

func DropTables(db *gorm.DB, models ...interface{}) error

DropTables drops database tables for the given models using GORM's DropTable function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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