package
Version:
v0.0.0-...-7daae65
Opens a new window with list of versions in this module.
Published: Aug 29, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package orm provides `GORM` helpers for the creation, migration and access
on the project's database
func CloseDbConnectionLogIfError(db *gorm.DB)
func CommitOrRollBackIfErrorAndCloseSession(db *gorm.DB, err error)
type ORM struct {
DB *gorm.DB
}
ORM struct to holds the gorm pointer to db
Factory creates a db connection with the selected dialect and connection string
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.