Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDatabaseSettingDecoder ¶
func AddDatabaseSettingDecoder()
AddDatabaseSettingDecoder adds a decoder for the database setting format in the config file.
func CloseAllDatabaseHandles ¶
func CloseAllDatabaseHandles()
CloseAllDatabaseHandles closes all database handles. call at end of program to clean up.
func GetDatabaseHandle ¶
GetDatabaseHandle returns the database handle for the specified dsn Or nil if no database handle for the specified dsn exists.
func OpenDatabaseHandles ¶
func OpenDatabaseHandles(conList []ConnectionSettings)
OpenDatabaseHandles works much like OpenNewDatabaseHandle() but takes an entire list of database connections to open
Types ¶
type ConnectionSettings ¶
type ConnectionSettings struct { Driver, DSN string }
ConnectionSettings represents the settings for a database connection
Click to show internal directories.
Click to hide internal directories.