package
Version:
v0.0.0-...-e0b4e73
Opens a new window with list of versions in this module.
Published: Dec 30, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
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.