A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCQuery_1_1CField.html below:

NCBI C++ ToolKit: CQuery::CField Class Reference

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  ) const

Get 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  ) const

Get 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  ) const

Get 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  ) const

Get 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  ) const

Get 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  ) const

Get 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.

Deprecated:
Please use CDatabase::NewBookmark instead.
See also
CDatabase::NewBookmark

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.

Parameters
blob_size blob_size is the size of the BLOB to be written. flags
See also
EBlobOStreamFlags.
Parameters
log_it Enables transaction log for BLOB (enabled by default). Make sure you have enough log segment space, or disable it.
Deprecated:
Please use CBlobBookmark::GetOStream instead.
See also
CBlobBookmark::GetOStream

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_Impl

The 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