Skip to content

Commit

Permalink
rename to more general IsSQLStore
Browse files Browse the repository at this point in the history
Signed-off-by: robinbraemer <[email protected]>
  • Loading branch information
robinbraemer committed Oct 18, 2024
1 parent 437748b commit 388f7a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/porter/porter.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (p *Porter) Connect(ctx context.Context) (context.Context, error) {
return nil // already initialized
}

storagePlugin, ok := sql.IsPostgresStorage(p.Config)
storagePlugin, ok := sql.IsSQLStore(p.Config)
if !ok {
store := storage.NewPluginAdapter(storageplugin.NewStore(p.Config))
mgr := migrations.NewManager(p.Config, store)
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/sql/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func UnmarshalPluginConfig(rawCfg interface{}) (cfg PluginConfig, err error) {
return
}

func IsPostgresStorage(c *config.Config) (s config.StoragePlugin, ok bool) {
func IsSQLStore(c *config.Config) (s config.StoragePlugin, ok bool) {
// TODO add other sql databases
if c.Data.DefaultStoragePlugin == "postgres" {
for _, s = range c.Data.StoragePlugins {
Expand Down

0 comments on commit 388f7a6

Please sign in to comment.