11 namespace persistency {
14 unsigned int count = 0;
16 while (slashpos != std::string::npos) {
17 slashpos =
input.find(
'/', slashpos);
18 if (slashpos != std::string::npos) {
47 if (protocol ==
"frontier") {
58 if (!transactionId.empty()) {
59 size_t l = finalConn.rfind(
'/');
60 finalConn.insert(
l,
"(freshkey=" + transactionId +
')');
69 finalConn.insert(
s,
"(security=" +
signature +
')');
76 if (startRefresh != std::string::npos) {
80 if (endRefresh == std::string::npos) {
81 refreshConn = finalConn;
83 refreshConn = finalConn.substr(startRefresh, endRefresh - startRefresh);
84 if (refreshConn.substr(0, 1) !=
"(") {
87 refreshConn.insert(0,
"http://");
90 }
else if (protocol ==
"sqlite_fip") {
93 return std::make_pair(finalConn, refreshConn);