package
Version:
v0.0.0-...-737cb1d
Opens a new window with list of versions in this module.
Published: Jun 7, 2016
License: BSD-2-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DBFromConfig opens a sql.DB from settings in a db config file
type DBConfig struct {
DriverName string `json:"driver"`
DataSourceName string `json:"data_source"`
}
DBConfig contains the database driver name and configuration to be passed to Open
LoadFile attempts to load the db configuration file stored at the path
and returns the configuration. On error, it returns nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.