Documentation
¶
Index ¶
- func IsDuplicateKeyError(db *gorm.DB, err error) bool
- func IsForeignKeyError(db *gorm.DB, err error) bool
- func JSONScan[T any](dest *T, value any) error
- func JSONValue(isNil bool, value any) (driver.Value, error)
- func ParseSQLiteConnectionString(connString string) (string, error)
- func SetGormLogger(l logger.Interface)
- type BaseModel
- type DB
- type JSON
- type MigrationOptions
- type StringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGormLogger ¶
Types ¶
type BaseModel ¶
type DB ¶
func Initialize ¶
type MigrationOptions ¶
type StringSlice ¶
type StringSlice []string
func (*StringSlice) Scan ¶
func (s *StringSlice) Scan(value any) error
Directories
¶
| Path | Synopsis |
|---|---|
|
Set Dialect to the target database dialect before running migrations.
|
Set Dialect to the target database dialect before running migrations. |
Click to show internal directories.
Click to hide internal directories.