Relational DB interface

This commit is contained in:
cdy20
2020-06-03 17:57:07 -04:00
committed by manojsdoshi
parent 207e1730e9
commit 6d82fb83a0
66 changed files with 8528 additions and 3593 deletions

View File

@@ -108,7 +108,7 @@ public:
for (auto const& i : d)
{
SociConfig sc(c, i.first);
DBConfig sc(c, i.first);
BEAST_EXPECT(
boost::ends_with(sc.connectionString(), i.first + i.second));
}
@@ -119,7 +119,7 @@ public:
testcase("open");
BasicConfig c;
setupSQLiteConfig(c, getDatabasePath());
SociConfig sc(c, "SociTestDB");
DBConfig sc(c, "SociTestDB");
std::vector<std::string> const stringData(
{"String1", "String2", "String3"});
std::vector<int> const intData({1, 2, 3});
@@ -180,7 +180,7 @@ public:
testcase("select");
BasicConfig c;
setupSQLiteConfig(c, getDatabasePath());
SociConfig sc(c, "SociTestDB");
DBConfig sc(c, "SociTestDB");
std::vector<std::uint64_t> const ubid(
{(std::uint64_t)std::numeric_limits<std::int64_t>::max(), 20, 30});
std::vector<std::int64_t> const bid({-10, -20, -30});
@@ -312,7 +312,7 @@ public:
testcase("deleteWithSubselect");
BasicConfig c;
setupSQLiteConfig(c, getDatabasePath());
SociConfig sc(c, "SociTestDB");
DBConfig sc(c, "SociTestDB");
{
soci::session s;
sc.open(s);