package
module
Version:
v0.0.15
Opens a new window with list of versions in this module.
Published: Jun 9, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewDriver creates a new gorm driver.
type Adapter struct {
DB *gorm.DB
RetryCount int
}
Adapter is the gorm structure used as a template for the gorm based adapters.
NewAdapter creates a new gorm based adapter. If the input driver is not a GORM driver,
it would be wrapped by the xgorm.driver.
Do executes given function 'f' so that if there would be a connection error it would try to retry the query
up to the limit set on initialization.
Driver gets the adapter driver.
Err parses err using adapter driver.
Health implements health check for the service.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.