Versions in this module Expand all Collapse all v1 v1.0.1 Dec 19, 2025 v1.0.0 Dec 18, 2025 Changes in this version + var Connection xConnector + func NewSession(db *gorm.DB) *gorm.DB + type ConnectionCallback func(db *gorm.DB) *gorm.DB + type Connector interface + Connect func(callback ...ConnectionCallback) (inst Instance, err error) + func NewConnector(opts Options) Connector + type DB struct + Clauses []clause.Expression + DB *gorm.DB + Scopes []scopes.Scope + Timeout time.Duration + type DRIVER string + const DRIVER_MYSQL + const DRIVER_PGSQL + const DRIVER_SQLITE + type ENGINE string + const ENGINE_INNODB + type Instance interface + Get func(options ...DB) (db *gorm.DB, err error) + Migrate func(models ...any) (err error) + Seed func(entries ...SeederEntry) (err error) + WithCancel func(options ...DB) (db *gorm.DB, cancel context.CancelFunc, err error) + type Null struct + Data T + Valid bool + func (n *Null[T]) Scan(value any) (err error) + func (n *Null[T]) UnmarshalJSON(b []byte) error + func (n Null[T]) MarshalJSON() ([]byte, error) + func (n Null[T]) Value() (driver.Value, error) + type Options struct + Charset string + Collation string + Config *gorm.Config + ConnMaxIdleTime int + ConnMaxLifetime int + DBName string + DSN string + Driver DRIVER + Engine ENGINE + Host string + MaxIdleConns int + MaxOpenConns int + Password string + Port string + Username string + type SeederEntry interface + Handler func(db *gorm.DB) (err error) + Name func() string