#include "boost/test/unit_test.hpp"
#include "fhiclcpp/DatabaseSupport.h"
#include "sqlite3.h"
Go to the source code of this file.
#define BOOST_TEST_MODULE (writesqlitedb test) |
BOOST_AUTO_TEST_CASE |
( |
write_sqlite |
| ) |
|
Definition at line 11 of file WriteSQLiteDB_t.cc.
15 int rc = sqlite3_open_v2(
16 "test.db", &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
nullptr);
18 BOOST_TEST(rc == SQLITE_OK);
20 rc = sqlite3_close(db);
21 BOOST_TEST(rc == SQLITE_OK);
void parse_file_and_fill_db(std::string const &filename, sqlite3 *db)