统一单数据库部署并完成三种数据库云端验证
This commit is contained in:
1 parent
a8e32774a8
commit
9b7479ec4c
18 files changed
+724
-66
No files matched your search
@@ -98,8 +98,12 @@ func runtimeCompatibility(runtime RuntimeConfig) (*Config, error) {
|
||||
}
|
||||
|
||||
func compatibilityDatabase(database DatabaseConfig, vault *credential.Vault) (string, string, error) {
|
||||
return compatibilityDatabaseAt(ROOT_PATH, database, vault)
|
||||
}
|
||||
|
||||
func compatibilityDatabaseAt(root string, database DatabaseConfig, vault *credential.Vault) (string, string, error) {
|
||||
if database.Type == DatabaseTypeSQLite {
|
||||
path := filepath.Join(ROOT_PATH, "data", database.LocalRef)
|
||||
path := filepath.Join(root, "data", database.LocalRef)
|
||||
return DBTypeSQLite, path, nil
|
||||
}
|
||||
password, err := OpenStoredSecret(vault, database.Password)
|
||||
|
||||
Reference in new issue
Block a user