KexiDB::SQLitePreparedStatement Class Reference
#include <sqlitepreparedstatement.h>
Inheritance diagram for KexiDB::SQLitePreparedStatement:
Public Member Functions | |
| SQLitePreparedStatement (StatementType type, ConnectionInternal &conn, FieldList &fields) | |
| virtual bool | execute () |
Public Member Functions inherited from KexiDB::PreparedStatement | |
| PreparedStatement (StatementType type, ConnectionInternal &conn, FieldList &fields, const TQStringList &where=TQStringList()) | |
| PreparedStatement & | operator<< (const TQVariant &value) |
| void | clearArguments () |
Public Attributes | |
| sqlite3_stmt * | prepared_st_handle |
| bool | m_resetRequired: 1 |
Additional Inherited Members | |
Public Types inherited from KexiDB::PreparedStatement | |
| enum | StatementType { SelectStatement , InsertStatement } |
| typedef TDESharedPtr< PreparedStatement > | Ptr |
Protected Member Functions inherited from KexiDB::PreparedStatement | |
| TQCString | generateStatementString () |
Protected Attributes inherited from KexiDB::PreparedStatement | |
| StatementType | m_type |
| FieldList * | m_fields |
| TQValueList< TQVariant > | m_args |
| TQStringList * | m_where |
| Field::List * | m_whereFields |
Detailed Description
Implementation of prepared statements for SQLite driver.
Definition at line 30 of file sqlitepreparedstatement.h.
Constructor & Destructor Documentation
◆ SQLitePreparedStatement()
| SQLitePreparedStatement::SQLitePreparedStatement | ( | StatementType | type, |
| ConnectionInternal & | conn, | ||
| FieldList & | fields | ||
| ) |
- Todo:
- copy error msg
Definition at line 27 of file sqlite/sqlitepreparedstatement.cpp.
◆ ~SQLitePreparedStatement()
|
virtual |
Definition at line 56 of file sqlite/sqlitepreparedstatement.cpp.
Member Function Documentation
◆ execute()
|
virtual |
Executes the prepared statement. In most cases you will need to clear arguments after executing, using clearArguments(). A number arguments set up for the statement must be the same as a number of fields defined in the underlying database table.
- Returns
- false on failure. Detailed error status can be obtained from KexiDB::Connection object used to create this statement.
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- optimize: make a static copy so SQLITE_STATIC can be used
- Todo:
- msg?
- Todo:
- what about unsigned > INT_MAX ?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- what about unsigned > LLONG_MAX ?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- msg?
- Todo:
- msg?
Implements KexiDB::PreparedStatement.
Definition at line 66 of file sqlite/sqlitepreparedstatement.cpp.
Member Data Documentation
◆ m_resetRequired
| bool KexiDB::SQLitePreparedStatement::m_resetRequired |
Definition at line 45 of file sqlitepreparedstatement.h.
◆ prepared_st_handle
| sqlite3_stmt* KexiDB::SQLitePreparedStatement::prepared_st_handle |
Definition at line 43 of file sqlitepreparedstatement.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from