Commit 4f7ad3f9 authored by Jonas Schäfer's avatar Jonas Schäfer Committed by louiz’
Browse files
parent 0168b96b
......@@ -37,7 +37,7 @@ void Database::open(const std::string& filename)
std::unique_ptr<DatabaseEngine> new_db;
static const auto psql_prefix = "postgresql://"s;
if (filename.substr(0, psql_prefix.size()) == psql_prefix)
new_db = PostgresqlEngine::open("dbname="s + filename.substr(psql_prefix.size()));
new_db = PostgresqlEngine::open(filename);
new_db = Sqlite3Engine::open(filename);
if (!new_db)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment