mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-26 10:37:04 -06:00
Enable prepare step for AWS and GS remotes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user