|
OpenMS
2.6.0
|
Go to the documentation of this file.
66 openDatabase(filename);
95 return tableExists(db_, tablename);
108 return columnExists(db_, tablename, colname);
121 executeStatement(db_, statement);
135 executeStatement(db_, statement);
156 executeBindStatement(db_, prepare_statement, data);
172 prepareStatement(db_, stmt, prepare_statement);
183 static bool tableExists(sqlite3* db,
const String& tablename);
194 static bool columnExists(sqlite3* db,
const String& tablename,
const String& colname);
206 static void executeStatement(sqlite3* db,
const std::stringstream& statement);
218 static void executeStatement(sqlite3* db,
const String& statement);
239 static void prepareStatement(sqlite3* db, sqlite3_stmt** stmt,
const String& prepare_statement);
259 static void executeBindStatement(sqlite3* db,
const String& prepare_statement,
const std::vector<String>& data);
270 void openDatabase(
const String& filename);
279 namespace SqliteHelper
304 template <
typename ValueType>
317 template <>
bool extractValue<std::string>(std::string* dst, sqlite3_stmt* stmt,
int pos);
File adapter for Sqlite files.
Definition: SqliteConnector.h:57
A method or algorithm argument contains illegal values.
Definition: Exception.h:648
void executeBindStatement(const String &prepare_statement, const std::vector< String > &data)
Executes raw data SQL statements (insert statements)
Definition: SqliteConnector.h:154
void executeStatement(const String &statement)
Executes a given SQL statement (insert statement)
Definition: SqliteConnector.h:133
A more convenient string class.
Definition: String.h:59
bool extractValue< int >(int *dst, sqlite3_stmt *stmt, int pos)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
void executeStatement(const std::stringstream &statement)
Executes a given SQL statement (insert statement)
Definition: SqliteConnector.h:119
SqliteConnector(const String &filename)
Definition: SqliteConnector.h:64
bool extractValueIntStr(String *dst, sqlite3_stmt *stmt, int pos)
Special case where an integer should be stored in a String field.
bool extractValue< String >(String *dst, sqlite3_stmt *stmt, int pos)
sqlite3 * getDB()
Returns the raw pointer to the database.
Definition: SqliteConnector.h:81
sqlite3 * db_
Definition: SqliteConnector.h:273
bool extractValue< double >(double *dst, sqlite3_stmt *stmt, int pos)
bool columnExists(const String &tablename, const String &colname)
Checkes whether the given table contains a certain column.
Definition: SqliteConnector.h:106
void prepareStatement(sqlite3_stmt **stmt, const String &prepare_statement)
Prepares a SQL statement.
Definition: SqliteConnector.h:170
bool extractValue(ValueType *, sqlite3_stmt *, int)
Extracts a specific value from an SQL column.
Definition: SqliteConnector.h:305
bool tableExists(const String &tablename)
Checks whether the given table exists.
Definition: SqliteConnector.h:93