Documentation ¶
Index ¶
- func AutoMigrate(db *gorm.DB, models ...interface{}) error
- func CloseConnection(db *gorm.DB) error
- func NewApplicationRepository(db *gorm.DB) repository.ApplicationRepository
- func NewClientRepository(db *gorm.DB) repository.ClientRepository
- func NewConnection(config *Config) (*gorm.DB, error)
- func NewLicenseRepository(db *gorm.DB) repository.LicenseRepository
- func NewLicenseTypeRepository(db *gorm.DB) repository.LicenseTypeRepository
- func RollbackMigrations(db *gorm.DB, migrationsPath string) error
- func RunMigrations(db *gorm.DB, migrationsPath string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrate ¶
AutoMigrate automatically migrates the schema for the given models
func CloseConnection ¶
CloseConnection closes the database connection
func NewApplicationRepository ¶
func NewApplicationRepository(db *gorm.DB) repository.ApplicationRepository
func NewClientRepository ¶
func NewClientRepository(db *gorm.DB) repository.ClientRepository
func NewConnection ¶
NewConnection establishes a new database connection using GORM
func NewLicenseRepository ¶
func NewLicenseRepository(db *gorm.DB) repository.LicenseRepository
func NewLicenseTypeRepository ¶
func NewLicenseTypeRepository(db *gorm.DB) repository.LicenseTypeRepository
func RollbackMigrations ¶
RollbackMigrations rolls back the last applied migration
Types ¶
Click to show internal directories.
Click to hide internal directories.