package
Version:
v0.0.0-...-aca1c39
Opens a new window with list of versions in this module.
Published: Jan 6, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
func Migrate(gorm *gorm.DB, types ...interface{}) error
func NewGenericRepository[T any](db *gorm.DB) *genericRepository[T]
create new gorm generic repository
type Gorm struct {
DB *gorm.DB
}
type GormPostgresConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
User string `mapstructure:"user"`
DBName string `mapstructure:"dbName"`
SSLMode bool `mapstructure:"sslMode"`
Password string `mapstructure:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.