Documentation ¶
Index ¶
Constants ¶
View Source
const ( MySQLDriverName = "mysql" SQLiteDriverName = "sqlite3" PostgreSQLDriverName = "postgres" )
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(driver, storageAddress, storageReadOnlyAddress string) (name string, rw *gorm.DB, ro *gorm.DB, err error)
Resolve takes in connection criteria and returns the appropriate driver.
func StatementsFor ¶
func StatementsFor(driver, version string) *core.Statements
StatementsFor uses the provided information to lookup statements for the driver.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.