updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@ -64,8 +64,8 @@ public:
|
||||
void TearDown() override { db3.reset(); }
|
||||
};
|
||||
|
||||
static void common_insert(sqlite3 &db, bool dump = false) {
|
||||
auto query = utils::db::sqlite::db_insert{db, "table"}
|
||||
static void common_insert(sqlite3 &db3, bool dump = false) {
|
||||
auto query = utils::db::sqlite::db_insert{db3, "table"}
|
||||
.column_value("column1", "test0")
|
||||
.column_value("column2", "test1");
|
||||
if (dump) {
|
||||
@ -76,9 +76,9 @@ static void common_insert(sqlite3 &db, bool dump = false) {
|
||||
EXPECT_TRUE(res.ok());
|
||||
}
|
||||
|
||||
static void common_select(sqlite3 &db, std::string value1, std::string value2,
|
||||
static void common_select(sqlite3 &db3, std::string value1, std::string value2,
|
||||
bool dump = false) {
|
||||
auto query = utils::db::sqlite::db_select{db, "table"};
|
||||
auto query = utils::db::sqlite::db_select{db3, "table"};
|
||||
if (dump) {
|
||||
std::cout << query.dump() << std::endl;
|
||||
}
|
||||
@ -113,9 +113,9 @@ static void common_select(sqlite3 &db, std::string value1, std::string value2,
|
||||
EXPECT_EQ(std::size_t(1U), row_count);
|
||||
}
|
||||
|
||||
static void common_delete(sqlite3 &db, bool dump = false) {
|
||||
static void common_delete(sqlite3 &db3, bool dump = false) {
|
||||
{
|
||||
auto query = utils::db::sqlite::db_delete{db, "table"};
|
||||
auto query = utils::db::sqlite::db_delete{db3, "table"};
|
||||
if (dump) {
|
||||
std::cout << query.dump() << std::endl;
|
||||
}
|
||||
@ -125,7 +125,7 @@ static void common_delete(sqlite3 &db, bool dump = false) {
|
||||
}
|
||||
|
||||
{
|
||||
auto query = utils::db::sqlite::db_select{db, "table"};
|
||||
auto query = utils::db::sqlite::db_select{db3, "table"};
|
||||
auto res = query.go();
|
||||
EXPECT_TRUE(res.ok());
|
||||
|
||||
|
Reference in New Issue
Block a user