1 #ifndef cetlib_sqlite_helpers_h 2 #define cetlib_sqlite_helpers_h 33 template <
typename... Args>
35 bool const delete_contents,
37 permissive_column<Args>
const&... cols);
44 template <
typename... Args>
47 bool const delete_contents,
53 if (delete_contents) {
bool hasTableWithSchema(sqlite3 *db, std::string const &tablename, std::string expectedSchema)
void delete_from(sqlite3 *db, std::string const &tablename)
void createTableIfNeeded(sqlite3 *db, bool const delete_contents, std::string const &tablename, permissive_column< Args > const &...cols)
std::string assembleNoLockURI(std::string const &filename)
std::string create_table_ddl(std::string const &tablename, Cols const &...cols)
void drop_table_if_exists(sqlite3 *db, std::string const &tablename)
void drop_table(sqlite3 *db, std::string const &tablename)
unsigned nrows(sqlite3 *db, std::string const &tablename)
void exec(sqlite3 *db, std::string const &ddl)