Skip to content

Commit

Permalink
ensure roster when invoking .Schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Dec 9, 2020
1 parent 1bcfc43 commit 3bf5b80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ func Schemes() []string {
ctx := context.Background()
schemes := []string{}

err := ensureSpatialRoster()

if err != nil {
return schemes
}

for _, dr := range spatial_databases.Drivers(ctx) {
scheme := fmt.Sprintf("%s://", dr)
schemes = append(schemes, scheme)
Expand Down
6 changes: 6 additions & 0 deletions properties/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ func Schemes() []string {
ctx := context.Background()
schemes := []string{}

err := ensurePropertiesRoster()

if err != nil {
return schemes
}

for _, dr := range properties_readers.Drivers(ctx) {
scheme := fmt.Sprintf("%s://", dr)
schemes = append(schemes, scheme)
Expand Down

0 comments on commit 3bf5b80

Please sign in to comment.