[Unit Test] SQLite mini-ORM unit tests and cleanup #14
This commit is contained in:
parent
d61cb3f0f3
commit
ef270887fc
@ -53,7 +53,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static void common_insert(db::db3_t &db, bool dump = false) {
|
||||
static void common_insert(sqlite3 &db, bool dump = false) {
|
||||
auto query = db::db_insert{db, "table"}
|
||||
.column_value("column1", "test0")
|
||||
.column_value("column2", "test1");
|
||||
@ -65,7 +65,7 @@ static void common_insert(db::db3_t &db, bool dump = false) {
|
||||
EXPECT_TRUE(res.ok());
|
||||
}
|
||||
|
||||
static void common_select(db::db3_t &db, std::string value1, std::string value2,
|
||||
static void common_select(sqlite3 &db, std::string value1, std::string value2,
|
||||
bool dump = false) {
|
||||
auto query = db::db_select{db, "table"};
|
||||
if (dump) {
|
||||
@ -102,7 +102,7 @@ static void common_select(db::db3_t &db, std::string value1, std::string value2,
|
||||
EXPECT_EQ(std::size_t(1U), row_count);
|
||||
}
|
||||
|
||||
static void common_delete(db::db3_t &db, bool dump = false) {
|
||||
static void common_delete(sqlite3 &db, bool dump = false) {
|
||||
{
|
||||
auto query = db::db_delete{db, "table"};
|
||||
if (dump) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user