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 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)
}
Click to show internal directories.
Click to hide internal directories.