From eac2546df0d485d58ddc7f9ccd1f163cf6fcb44c Mon Sep 17 00:00:00 2001 From: Zach Musgrave Date: Tue, 6 Sep 2022 15:20:17 -0700 Subject: [PATCH] Enable prepare step for AWS and GS remotes --- go/libraries/doltcore/dbfactory/aws.go | 4 ++-- go/libraries/doltcore/dbfactory/gs.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go/libraries/doltcore/dbfactory/aws.go b/go/libraries/doltcore/dbfactory/aws.go index 1c4322df5f..d6a802f425 100644 --- a/go/libraries/doltcore/dbfactory/aws.go +++ b/go/libraries/doltcore/dbfactory/aws.go @@ -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 diff --git a/go/libraries/doltcore/dbfactory/gs.go b/go/libraries/doltcore/dbfactory/gs.go index cfebd54823..24bd9a28db 100644 --- a/go/libraries/doltcore/dbfactory/gs.go +++ b/go/libraries/doltcore/dbfactory/gs.go @@ -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