Namespaces | Functions
helpers.h File Reference
#include "cetlib/sqlite/column.h"
#include "cetlib/sqlite/create_table.h"
#include "cetlib/sqlite/exec.h"
#include "sqlite3.h"
#include <string>

Go to the source code of this file.

Namespaces

 cet::sqlite
 

Functions

std::string cet::sqlite::assembleNoLockURI (std::string const &filename)
 
bool cet::sqlite::hasTableWithSchema (sqlite3 *db, std::string const &tablename, std::string expectedSchema)
 
unsigned cet::sqlite::nrows (sqlite3 *db, std::string const &tablename)
 
void cet::sqlite::delete_from (sqlite3 *db, std::string const &tablename)
 
void cet::sqlite::drop_table (sqlite3 *db, std::string const &tablename)
 
void cet::sqlite::drop_table_if_exists (sqlite3 *db, std::string const &tablename)
 
template<typename... Args>
void cet::sqlite::createTableIfNeeded (sqlite3 *db, bool const delete_contents, std::string const &tablename, permissive_column< Args > const &...cols)