Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connector ¶
type Connector interface {
Connect(callback ...ConnectionCallback) (inst Instance, err error)
}
func NewConnector ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) Seed ¶
func (x *Instance) Seed(entries ...SeederEntry) (err error)
func (*Instance) WithCancel ¶
type Null ¶
type Null[T comparable] struct { Data T Valid bool }
func (Null[T]) MarshalJSON ¶
func (*Null[T]) UnmarshalJSON ¶
type Options ¶
type Options struct {
Driver DRIVER
Host string
Port string
Username string
Password string
DBName string
Charset string
Collation string
DSN string
Engine ENGINE
Config *gorm.Config
MaxOpenConns int
MaxIdleConns int
ConnMaxLifetime int // Maximum lifetime for a connection (in milliseconds)
ConnMaxIdleTime int // Maximum idle time for a connection (in milliseconds)
}
type Set ¶ added in v1.0.2
func (Set[T]) MarshalJSON ¶ added in v1.0.2
func (*Set[T]) UnmarshalJSON ¶ added in v1.0.2
Source Files
¶
Click to show internal directories.
Click to hide internal directories.