Home | History | Annotate | Download | only in _sqlite

Lines Matching refs:statement

28 #include "statement.h"
209 PyObject* statement;
214 statement = PyWeakref_GetObject(weakref);
215 if (statement != Py_None) {
216 Py_INCREF(statement);
218 (void)pysqlite_statement_reset((pysqlite_Statement*)statement);
220 (void)pysqlite_statement_finalize((pysqlite_Statement*)statement);
222 Py_DECREF(statement);
375 sqlite3_stmt* statement;
378 rc = sqlite3_prepare(self->db, self->begin_statement, -1, &statement, &tail);
382 _pysqlite_seterror(self->db, statement);
386 rc = pysqlite_step(statement, self);
388 _pysqlite_seterror(self->db, statement);
392 rc = sqlite3_finalize(statement);
412 sqlite3_stmt* statement;
421 rc = sqlite3_prepare(self->db, "COMMIT", -1, &statement, &tail);
428 rc = pysqlite_step(statement, self);
430 _pysqlite_seterror(self->db, statement);
434 rc = sqlite3_finalize(statement);
455 sqlite3_stmt* statement;
465 rc = sqlite3_prepare(self->db, "ROLLBACK", -1, &statement, &tail);
472 rc = pysqlite_step(statement, self);
474 _pysqlite_seterror(self->db, statement);
478 rc = sqlite3_finalize(statement);
1214 pysqlite_Statement* statement;
1230 statement = PyObject_New(pysqlite_Statement, &pysqlite_StatementType);
1231 if (!statement) {
1235 statement->db = NULL;
1236 statement->st = NULL;
1237 statement->sql = NULL;
1238 statement->in_use = 0;
1239 statement->in_weakreflist = NULL;
1241 rc = pysqlite_statement_create(statement, self, sql);
1244 PyErr_SetString(pysqlite_Warning, "You can only execute one statement at a time.");
1249 (void)pysqlite_statement_reset(statement);
1255 weakref = PyWeakref_NewRef((PyObject*)statement, NULL);
1264 return (PyObject*)statement;
1267 Py_DECREF(statement);
1642 PyDoc_STR("Sets a trace callback called for each SQL statement (passed as unicode). Non-standard.")},
1644 PyDoc_STR("Executes a SQL statement. Non-standard.")},
1646 PyDoc_STR("Repeatedly executes a SQL statement. Non-standard.")},