mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 08:55:53 +00:00
.
This commit is contained in:
12
Config.cpp
12
Config.cpp
@@ -1,5 +1,8 @@
|
||||
#include "Config.h"
|
||||
#include "util/pugixml.hpp"
|
||||
#include "Application.h"
|
||||
#include "database/SqliteDatabase.h"
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
using namespace pugi;
|
||||
@@ -50,5 +53,14 @@ void Config::load()
|
||||
node= root.child("RPC_PORT");
|
||||
if(!node.empty()) RPC_PORT=boost::lexical_cast<int>(node.child_value());
|
||||
|
||||
/*
|
||||
node=root.child("DB_TYPE");
|
||||
if(!node.empty())
|
||||
{
|
||||
if( stricmp(node.child_value(),"mysql")==0 ) theApp->setDB(Database::newMysqlDatabase("host","user","pass"));
|
||||
else theApp->setSerializer(new DiskSerializer());
|
||||
}else */
|
||||
theApp->setDB(new SqliteDatabase());
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user