package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Feb 14, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
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.