41 #define NCBI_USE_ERRCODE_X Dbapi_BulkInsert
48 : m_cmd(0), m_conn(
conn)
void RemoveListener(CActiveObject *obj)
void SetIdent(const string &name)
void Notify(const CDbapiEvent &e)
virtual CDB_Connection * GetCDB_Connection()
Returns the internal driver connection object.
void SetHints(CTempString hints)
Set hints by one call. Resets everything that was set by Add*Hint().
virtual void Action(const CDbapiEvent &e)
CDB_BCPInCmd * GetBCPInCmd()
virtual void Close()
Close.
virtual void Cancel()
Cancel bulk insert.
virtual void Bind(const CDBParamVariant ¶m, CVariant *v)
Bind column.
virtual ~CDBAPIBulkInsert()
void AddOrderHint(CTempString columns)
Add "ORDER" hint.
virtual void Complete()
Complete batch.
CDBAPIBulkInsert(const string &table, CConnection *conn)
void AddHint(EHints hint, unsigned int value=0)
Add hint with value.
virtual void StoreBatch()
Store batch of rows.
virtual void AddRow()
Add row to the batch.
CActiveObject * GetSource() const
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
static CS_CONNECTION * conn
static const column_t columns[]
EHints
Type of hint that can be set.
bool IsPositional(void) const
virtual CDBParams & Bind(const CDBParamVariant ¶m, CDB_Object *value, bool out_param=false)
This method stores pointer to data.
unsigned int GetPosition(void) const
virtual bool SendRow()
Send row to the server.
virtual bool CompleteBatch()
Complete batch – to store all rows transferred by far in this batch into the table.
virtual CDB_BCPInCmd * BCPIn(const string &table_name)
Make "bulk copy in" command.
void AddOrderHint(CTempString columns)
Add "ORDER" hint.
void AddHint(EBCP_Hints hint, unsigned int value=0)
Add hint with value.
virtual CDBParams & GetBindParams(void)
Get meta-information about parameters.
virtual bool CompleteBCP()
Complete the BCP and store all rows transferred in last batch into the table.
EBCP_Hints
Type of hint that can be set.
virtual bool Cancel()
Cancel the BCP command.
void SetHints(CTempString hints)
Set hints by one call. Resets everything that was set by Add*Hint().
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.
Definition of all error codes used in dbapi libraries (dbapi_driver.lib and others).
const GenericPointer< typename T::ValueType > T2 value