m_Cmd->GetBindParams().GetNum();
71 returnm_Cmd->GetBindParams().GetDataType(param);
77 returnm_Cmd->GetBindParams().GetDataType(param);
83 returnm_Cmd->GetBindParams().GetName(param);
89 returnm_Cmd->GetBindParams().GetDirection(param);
127 _TRACE(
"CStatement::CacheResultSet(): Invalidating cached CResultSet "<< (
void*)
m_irs);
135 _TRACE(
"CStatement::CacheResultSet(): Created new CResultSet "<< (
void*)
m_irs 136<<
" with CDB_Result "<< (
void*)rs);
179 NCBI_DBAPI_THROW(
"Binding by position is prohibited if any parameter was bound by name.");
190 NCBI_DBAPI_THROW(
"Binding by name is prohibited if any parameter was bound by position.");
192 const stringname = param.
GetName();
300d, blob_size,
flags,
false);
311d, blob_size,
flags,
false),
420 _TRACE(
"Clearing cached CResultSet "<< (
void*)
m_irs);
void RemoveListener(CActiveObject *obj)
void SetIdent(const string &name)
void AddListener(CActiveObject *obj)
void Notify(const CDbapiEvent &e)
virtual CDB_Connection * GetCDB_Connection()
Returns the internal driver connection object.
CActiveObject * GetSource() const
@ fLogExceptions
Exceptions logged only.
@ fOwnWriter
Own the underlying writer.
CDB_Result * GetCDB_Result()
CDB_Result * GetCDB_Result()
virtual int GetRowCount()
Get total of rows returned.
ParamByPosList m_posParams
class CConnection * m_conn
void CacheResultSet(CDB_Result *rs)
virtual const IResultSetMetaData & GetParamsMetaData(void)
Get input parameters metadata.
virtual void PurgeResults()
Purge results.
CStatement(class CConnection *conn)
virtual IResultSet * GetResultSet()
Get resulset.
virtual void ExecuteLast()
Executes the last command (with changed parameters, if any).
virtual void SendSql(const string &sql)
Sends one or more SQL statements to the SQL server.
virtual bool Failed()
Check if the statement failed.
CDB_LangCmd * GetLangCmd()
CStmtParamsMetaData m_InParams
virtual void ClearParamList()
Clear parameter list.
virtual void Cancel()
Cancel statement.
virtual IConnection * GetParentConn()
Get the parent connection.
virtual IWriter * GetBlobWriter(I_BlobDescriptor &d, size_t blob_size, TBlobOStreamFlags flags)
Get a writer for writing BLOBs using previously created CDB_BlobDescriptor.
virtual IResultSet * ExecuteQuery(const string &sql)
Exectues SQL statement and returns the first resultset.
virtual CNcbiOstream & GetBlobOStream(I_BlobDescriptor &d, size_t blob_size, TBlobOStreamFlags flags, size_t buf_size)
Get an ostream for writing BLOBs using previously created CDB_BlobDescriptor.
virtual void ExecuteUpdate(const string &sql)
Executes SQL statement with no results returned.
void x_Send(const string &sql)
virtual void Action(const CDbapiEvent &e)
virtual void SetParam(const CVariant &v, const CDBParamVariant ¶m)
Set input/output parameter.
CConnection * GetConnection()
virtual bool HasMoreResults()
Check for more results available.
virtual bool HasRows()
Check if resultset has rows.
virtual void Execute(const string &sql)
Sends one or more SQL statements to the SQL server (NOTE: replaced by the SendSql())
virtual bool IsAutoClearInParams(void) const
Get auto-clear input parameter flag value.
virtual void Close()
Close statement.
Writer-based output stream.
A very basic data-write interface.
container_type::iterator iterator
const_iterator begin() const
const_iterator end() const
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
#define NCBI_DBAPI_THROW(message)
static CS_CONNECTION * conn
bool IsPositional(void) const
virtual bool HasMoreResults(void) const =0
virtual bool Cancel(void)=0
Cancel the command execution.
virtual bool Send(void)=0
Send command to the server.
virtual CDBParams & Bind(const CDBParamVariant ¶m, CDB_Object *value, bool out_param=false)
This method stores pointer to data.
virtual int RowCount(void) const =0
Get the number of rows affected by the command Special case: negative on error or if there is no way ...
unsigned int GetPosition(void) const
const string & GetName(void) const
virtual CDB_Result * Result(void)=0
Get result set.
virtual CDBParams & GetBindParams(void)
Get meta-information about parameters.
virtual CDB_LangCmd * LangCmd(const string &lang_query)
Make language command.
CDB_Object * GetData() const
#define NCBI_CATCH_ALL_X(err_subcode, message)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
Definition of all error codes used in dbapi libraries (dbapi_driver.lib and others).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4