41 #define NCBI_USE_ERRCODE_X Dbapi_ObjImpls
62 if( bytes_read != 0 ) {
83 unsigned int item_num,
86 : m_destroy(
false), m_cdbConn(0), m_BytesNeeded(datasize)
97 : m_destroy(
destroy), m_cdbConn(
conn), m_BytesNeeded(blobsize)
108 size_t* bytes_written)
113 if( bytes_written != 0 )
114 *bytes_written = bPut;
virtual size_t Read(void *buf, size_t size)
Read unformatted data.
virtual ERW_Result Read(void *buf, size_t count, size_t *bytes_read=0)
Read as many as "count" bytes into a buffer pointed to by the "buf" argument.
CxBlobReader(class CResultSet *rs)
virtual ERW_Result PendingCount(size_t *count)
Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that a...
CxBlobWriter(CDB_Connection *conn, I_BlobDescriptor &d, size_t blobsize, TBlobOStreamFlags flags, bool destroy)
unique_ptr< CAutoTrans > m_AutoTrans
CDB_SendDataCmd * m_dataCmd
virtual ERW_Result Flush(void)
Flush pending data (if any) down to the output device.
CDB_Connection * m_cdbConn
virtual ERW_Result Write(const void *buf, size_t count, size_t *bytes_written=0)
Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.
static CS_CONNECTION * conn
@ fBOS_UseTransaction
Use a (sub)transaction (committed once all data's been sent successfully, rolled back for unrecoverab...
virtual CDB_SendDataCmd * SendDataCmd(unsigned int item_num, size_t size, bool log_it=true, bool discard_results=true)
Make "send-data" command.
virtual size_t SendChunk(const void *data, size_t size)
Send chunk of data to the server.
#define NCBI_CATCH_ALL_X(err_subcode, message)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ERW_Result
Result codes for I/O operations.
@ eRW_NotImplemented
Action / information is not available.
@ eRW_Eof
End of data, should be considered permanent.
@ eRW_Success
Everything is okay, I/O completed.
Definition of all error codes used in dbapi libraries (dbapi_driver.lib and others).