Commit 632c9798 authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb: storageURL -> zurl

zurl is more handy and is also used in zodbtools which have help on it
(`zodb help zurl`).
parent 9f8c776e
...@@ -79,13 +79,13 @@ func RegisterDriver(scheme string, opener DriverOpener) { ...@@ -79,13 +79,13 @@ func RegisterDriver(scheme string, opener DriverOpener) {
// get support for well-known storages. // get support for well-known storages.
// //
// Storage authors should register their storages with RegisterStorage. // Storage authors should register their storages with RegisterStorage.
func OpenStorage(ctx context.Context, storageURL string, opt *OpenOptions) (IStorage, error) { func OpenStorage(ctx context.Context, zurl string, opt *OpenOptions) (IStorage, error) {
// no scheme -> file:// // no scheme -> file://
if !strings.Contains(storageURL, "://") { if !strings.Contains(zurl, "://") {
storageURL = "file://" + storageURL zurl = "file://" + zurl
} }
u, err := url.Parse(storageURL) u, err := url.Parse(zurl)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment