Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection stores SQL database connection client & information.
func NewConnection ¶
func NewConnection(DB *gorm.DB, host, port, dialect string) *Connection
NewConnection creates new SQL database connection.
func (*Connection) LogError ¶
func (c *Connection) LogError(err error, msg string)
LogError prints SQL database connection error log to stderr.
func (*Connection) LogWarn ¶
func (c *Connection) LogWarn(err error, msg string)
LogWarn prints SQL database connection warning log to stdout.
Click to show internal directories.
Click to hide internal directories.