Lines Matching refs:sql
235 /// Executes an arbitrary SQL string.
242 /// \param sql The SQL commands to be executed.
244 /// \throw api_error If there is any problem while processing the SQL.
246 sqlite::database::exec(const std::string& sql)
248 const int error = ::sqlite3_exec(_pimpl->db, sql.c_str(), NULL, NULL, NULL);
269 /// \param sql The SQL statement to prepare.
273 sqlite::database::create_statement(const std::string& sql)
275 LD(F("Creating statement: %s") % sql);
277 const int error = ::sqlite3_prepare_v2(_pimpl->db, sql.c_str(),
278 sql.length() + 1, &stmt, NULL);