package dbconf
import "github.com/cloudflare/cfssl/certdb/dbconf"
Index ¶
Functions ¶
func DBFromConfig ¶
DBFromConfig opens a sql.DB from settings in a db config file
Types ¶
type DBConfig ¶
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
func LoadFile ¶
LoadFile attempts to load the db configuration file stored at the path and returns the configuration. On error, it returns nil.
Source Files ¶
- Version
- v1.6.5 (latest)
- Published
- Mar 5, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 6 days ago –
Tools for package owners.