Top 5.8% dependent packages on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org
Top 1.7% docker downloads on proxy.golang.org
proxy.golang.org : github.com/infobloxopen/hotload
Package hotload is a database/sql driver that dynamically loads connection strings for other database drivers. To use it, import it like any other database driver and register the real database driver you want to use with hotload. The above code: * registers the hotload driver with database/sql * registers the fsnotify strategy with hotload * registers the lib/pq postgres driver with database/sql * registers the lib/pq postgres driver with hotload Then in the main() function the sql.Open call uses the hotload driver. The URL for the connection string specifies fsnotify in the scheme. This is the hotload strategy. The hostname in the URL specifies the real database driver. Finally the path and query parameters are left for the hotload strategy plugin to configure themselves. Below is an example of a lib/pq postgres connection string that would have been stored at /tmp/myconfig.txt
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/infobloxopen/hotload
License: Apache-2.0
Latest release: 5 months ago
First release: over 4 years ago
Namespace: github.com/infobloxopen
Dependent packages: 1
Dependent repositories: 1
Stars: 3 on GitHub
Forks: 2 on GitHub
Docker dependents: 1
Docker downloads: 47
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago