package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 28, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DB struct {
Orm *gorm.DB
}
func (d *DB) CreateAndFirstOrCreate(table string, dest interface{}, conds ...interface{}) error
CreateAndFirstOrCreate 创建数据表并创建第一条数据,如果已有一条数据则不创建
Source Files
¶
Click to show internal directories.
Click to hide internal directories.