Documentation ¶
Index ¶
- func Exists[T any](db *DB, conds ...any) bool
- func ParseStruct(in any) []string
- type DB
- func (db *DB) Base(dest any, conds ...any) *DB
- func (db *DB) Close() error
- func (db *DB) Error() error
- func (db *DB) First(x any, conds ...any) bool
- func (db *DB) FirstOrCreate(first, create func(), x any, conds ...any)
- func (db *DB) NoRecord() bool
- func (db *DB) Preload(t any, conds ...any) *DB
- func (db *DB) Preloads(t any, conds ...any) *DB
- func (db *DB) SetDB(r *gorm.DB) *DB
- func (db *DB) SetDialector(dialector gorm.Dialector) *DB
- func (db *DB) SetSqlite(file string) *DB
- type Model
- type NoCopy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStruct ¶
Types ¶
type DB ¶
func (*DB) FirstOrCreate ¶
Click to show internal directories.
Click to hide internal directories.