Qore DbDataProvider Module Reference 2.1.1
Loading...
Searching...
No Matches
DbDataProvider::AbstractDbTableBulkOperation Class Reference

Bulk operation object for tables. More...

#include <AbstractDbTableBulkOperation.qc.dox.h>

Inheritance diagram for DbDataProvider::AbstractDbTableBulkOperation:
[legend]

Public Member Functions

 constructor (DbTableDataProvider provider, AbstractBulkOperation bulk)
 Creates the object.
 
 discard ()
 Discards any buffered data.
 
 flush ()
 Flushes any remaining data to the data provider.
 
 queueData (hash< auto > record)
 Queues data in the buffer.
 
 queueData (list< hash< auto > > records)
 Queues data in the buffer.
 

Protected Attributes

AbstractBulkOperation bulk
 The actual bulk insert operation object.
 

Detailed Description

Bulk operation object for tables.

Member Function Documentation

◆ discard()

DbDataProvider::AbstractDbTableBulkOperation::discard ( )

Discards any buffered data.

This method should be called before rolling back the transaction (if the data provider supports transaction management) or destroying the object if an error occurs

◆ flush()

DbDataProvider::AbstractDbTableBulkOperation::flush ( )

Flushes any remaining data to the data provider.

This method should always be called before committing the transaction (if the data provider supports transaction management) or destroying the object