Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultDataSource *gorm.DB
)
Functions ¶
func CreateTables ¶
func CreateTables(models ...interface{}) error
CreateTables creates database tables for the given models using GORM's AutoMigrate function.
func DropTables ¶
func DropTables(models ...interface{}) error
DropTables drops database tables for the given models using GORM's DropTable function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.