Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Migration dbMigration
View Source
var Seeder dbSeeder
Functions ¶
Types ¶
type Instance ¶ added in v2.1.0
type Instance interface { New() *gorm.DB DB(db ...*gorm.DB) (value *gorm.DB, err error) AddMigrations(models ...any) AddSeeders(handlers ...SeederHandler) Migrate(seed ...bool) (err error) Seed() (err error) }
func NewInstance ¶ added in v2.1.0
type Json ¶ added in v2.3.0
type Json[T any] struct { Data T }
func (Json[T]) MarshalJSON ¶ added in v2.3.0
func (*Json[T]) UnmarshalJSON ¶ added in v2.3.0
type Null ¶
type Null[T comparable] struct { Data T Valid bool }
func (Null[T]) MarshalJSON ¶
func (*Null[T]) UnmarshalJSON ¶
type Pagination ¶
type SeederHandler ¶ added in v2.1.0
type Set ¶ added in v2.3.0
type Set[T gotk.SetConstraint] struct {
Data []T
}
func (Set[T]) MarshalJSON ¶ added in v2.3.0
func (*Set[T]) UnmarshalJSON ¶ added in v2.3.0
Click to show internal directories.
Click to hide internal directories.