package
Version:
v0.0.27
Opens a new window with list of versions in this module.
Published: Oct 4, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func GetMySQLDsn(username, password, server, port, db, parameter string) string
-
func GetPostgresDsn(user, password, host, port, dbname, parameter string) string
-
func TransactionGorm(db *gorm.DB, f func(db *gorm.DB) error) error
func GetPostgresDsn(user, password, host, port, dbname, parameter string) string
GetPostgresDsn creates a Postgres DSN string.
TransactionGorm automatically performs transactions (Begin/Commit/Rollback) between specified func...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.