1 #ifndef CYCLUS_SRC_SQLITE_DB_H_ 2 #define CYCLUS_SRC_SQLITE_DB_H_ 6 #include <boost/shared_ptr.hpp> 25 typedef boost::shared_ptr<SqlStatement>
Ptr;
57 void BindText(
int i,
const char* val);
61 void BindBlob(
int i,
const void* val,
int n);
68 void Must(
int status);
135 #endif // CYCLUS_SRC_SQLITE_DB_H_ T Query(InfileTree *tree, std::string query, int index=0)
a query method for required parameters
void BindText(int i, const char *val)
Binds the templated sql parameter at index i to val.
An abstraction over the Sqlite native C interface to simplify database creation and data insertion...
int GetInt(int col)
Returns an int value for the specified column of the current query row.
void BindBlob(int i, const void *val, int n)
Binds the templated sql parameter at index i to the value pointed to by val.
bool Step()
Step to next row of previously executed query.
double GetDouble(int col)
Returns a double value for the specified column of the current query row.
void BindInt(int i, int val)
Binds the templated sql parameter at index i to val.
boost::shared_ptr< SqlStatement > Ptr
std::vector< std::string > StrList
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
void Exec()
Executes the prepared statement.
void BindDouble(int i, double val)
Binds the templated sql parameter at index i to val.
char * GetText(int col, int *n)
Returns a byte array value for the specified column of the current query row.
void Reset()
Executes the prepared statement.
Thin wrapper class over sqlite3 prepared statements.