Enable prepare step for AWS and GS remotes

This commit is contained in:
Zach Musgrave
2022-09-06 15:20:17 -07:00
parent abd53a58b0
commit eac2546df0
2 changed files with 4 additions and 3 deletions

View File

@@ -17,7 +17,6 @@ package dbfactory
import (
"context"
"errors"
"fmt"
"net/url"
"os"
"strings"
@@ -109,7 +108,8 @@ type AWSFactory struct {
}
func (fact AWSFactory) PrepareDB(ctx context.Context, nbf *types.NomsBinFormat, urlObj *url.URL, params map[string]interface{}) error {
return fmt.Errorf("aws scheme cannot support this operation")
// nothing to prepare
return nil
}
// CreateDB creates an AWS backed database

View File

@@ -34,7 +34,8 @@ type GSFactory struct {
}
func (fact GSFactory) PrepareDB(ctx context.Context, nbf *types.NomsBinFormat, urlObj *url.URL, params map[string]interface{}) error {
return fmt.Errorf("gs scheme cannot support this operation")
// nothing to prepare
return nil
}
// CreateDB creates an GCS backed database