Documentation
¶
Index ¶
- func ConnectMysql(url string, maxIdleConn, maxOpenConn int) (*gorm.DB, error)
- func ConnectPostgres(url string, maxIdleConn, maxOpenConn int) (*gorm.DB, error)
- func Migrate(fs embed.FS, migrationsDir, databaseName string, driver database.Driver) error
- func NewLogger(writer gormLogger.Writer, config gormLogger.Config) gormLogger.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectPostgres ¶
func NewLogger ¶
func NewLogger(writer gormLogger.Writer, config gormLogger.Config) gormLogger.Interface
NewLogger initialize logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.