Skip to content

Commit

Permalink
posgresql deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBrady committed Jun 5, 2024
1 parent 89b27aa commit 1a85f6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,18 @@ Config::processConfig(std::shared_ptr<cpptoml::table> t)
else if (item.first == "DATABASE")
{
DATABASE = SecretValue{readString(item)};
auto connectString = DATABASE.value;
std::string const protocolSeparator = "://";
std::string::size_type const p =
connectString.find(protocolSeparator);
auto backendName = connectString.substr(0, p);
if (backendName == "postgresql")
{
CLOG_WARNING(
Database,
"Support for postgresql backend is deprecated and will "
"be removed in a future release of stellar-core.");
}
}
else if (item.first == "NETWORK_PASSPHRASE")
{
Expand Down

0 comments on commit 1a85f6f

Please sign in to comment.