We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa3c6c commit deb57e5Copy full SHA for deb57e5
cmd/config.go
@@ -192,6 +192,8 @@ type DBConfig struct {
192
DBConnectFile string
193
}
194
195
+// URL returns the DBConnect URL represented by this DBConfig object, either
196
+// loading it from disk or returning a default value.
197
func (d *DBConfig) URL() (string, error) {
198
if c.DBConnectFile != "" {
199
return ioutil.ReadFile(c.DBConnectFile)
0 commit comments