Search Toolkit Book for CQuery::CField
Class representing value in result set or output parameter of stored procedure. More...
#include <dbapi/simple/sdbapi.hpp>
Class representing value in result set or output parameter of stored procedure.
Definition at line 257 of file sdbapi.hpp.
◆ CField() [1/3] ◆ ~CField() CQuery::CField::~CField ( )Definition at line 2615 of file sdbapi.cpp.
◆ CField() [2/3] ◆ CField() [3/3] ◆ AsBool() bool CQuery::CField::AsBool ( void ) constGet value as bool.
If underlying database type is string or text then attempt to convert it to integer will be made. If the value cannot be converted to integer or resulting integer is not equal to 0 or 1 (also if underlying type is integer and it's not equal to 0 or 1) exception will be thrown.
Definition at line 3750 of file sdbapi.cpp.
References CQuery::m_Impl, s_ConvertValue(), and rapidjson::value.
◆ AsByte() unsigned char CQuery::CField::AsByte ( void ) constGet value as single byte.
If underlying database type is string or text then attempt to convert it to byte will be made. If the value cannot be converted to integer or resulting integer cannot fit into byte exception will be thrown.
Definition at line 3702 of file sdbapi.cpp.
References CQuery::m_Impl, s_ConvertValue(), and rapidjson::value.
◆ AsDateTime() CTime CQuery::CField::AsDateTime ( void ) const ◆ AsDouble() double CQuery::CField::AsDouble ( void ) const ◆ AsFloat() float CQuery::CField::AsFloat ( void ) const ◆ AsInt4() Int4 CQuery::CField::AsInt4 ( void ) constGet value as 4-byte integer.
If underlying database type is string or text then attempt to convert it to integer will be made. If the value cannot be converted to integer or resulting integer cannot fit into 4 bytes exception will be thrown.
Definition at line 3718 of file sdbapi.cpp.
References CQuery::m_Impl, s_ConvertValue(), and rapidjson::value.
◆ AsInt8() Int8 CQuery::CField::AsInt8 ( void ) constGet value as 8-byte integer.
If underlying database type is string or text then attempt to convert it to integer will be made. If the value cannot be converted to integer exception will be thrown.
Definition at line 3726 of file sdbapi.cpp.
References CQuery::m_Impl, s_ConvertValue(), and rapidjson::value.
◆ AsIStream()Get value as input stream.
Only Text and Image data can be read via stream. Returned stream should be read completely before any other field is attempted to be read.
Definition at line 3813 of file sdbapi.cpp.
References CQuery::m_Impl.
◆ AsShort() short CQuery::CField::AsShort ( void ) constGet value as short integer.
If underlying database type is string or text then attempt to convert it to byte will be made. If the value cannot be converted to integer or resulting integer cannot fit into short data type exception will be thrown.
Definition at line 3710 of file sdbapi.cpp.
References CQuery::m_Impl, s_ConvertValue(), and rapidjson::value.
◆ AsString() string CQuery::CField::AsString ( void ) const ◆ AsVector() const vector< unsigned char > & CQuery::CField::AsVector ( void ) constGet value as vector of bytes.
Only Text and Image data can be read as vector. Returned vector should be read completely before any other field is attempted to be read.
Definition at line 3789 of file sdbapi.cpp.
References CQuery::m_Impl.
◆ GetBookmark()Get bookmark for the blob.
This bookmark can be used to change blob data later when all results from this query are processed.
NOTE: You won't be able to write a blob using this method if its value is set to NULL in the database. To use this method you should pre-set blob value to empty string or anything else of your choice. Blob value should be set before the query execution, i.e. query should return non-NULL value. Setting non-NULL value after query execution won't work.
Definition at line 3904 of file sdbapi.cpp.
References CQuery::m_Impl.
◆ GetOStream() [1/2] ◆ GetOStream() [2/2]Get a blob output stream, on top of a cloned connection.
The original connection should NOT have an active transaction.
NOTE: You won't be able to write a blob using this method if its value is set to NULL in the database. To use this method you should pre-set blob value to empty string or anything else of your choice.
Definition at line 3862 of file sdbapi.cpp.
References flags, and CQuery::m_Impl.
◆ IsNull() bool CQuery::CField::IsNull ( void ) const ◆ x_Detach() void CQuery::CField::x_Detach ( void ) private ◆ CQueryFieldImpl ◆ CQueryImpl ◆ CRow ◆ m_ImplThe documentation for this class was generated from the following files:
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