data provider: add CockroachDB support

This commit is contained in:
Nicola Murino
2021-03-23 19:14:15 +01:00
parent 8a1249878a
commit 70e035315e
12 changed files with 227 additions and 117 deletions

View File

@@ -91,7 +91,7 @@ func init() {
func initializeSQLiteProvider(basePath string) error {
var err error
var connectionString string
logSender = fmt.Sprintf("dataprovider_%v", SQLiteDataProviderName)
if config.ConnectionString == "" {
dbPath := config.Name
if !utils.IsFileInputValid(dbPath) {