Qore DbDataProvider Module Reference
2.0
|
Bulk operation object for tables. More...
Public Member Methods | |
constructor (DbTableDataProvider provider, AbstractBulkOperation bulk) | |
Creates the object. | |
discard () | |
Discards any buffered data. More... | |
flush () | |
Flushes any remaining data to the data provider. More... | |
queueData (hash< auto > record) | |
Queues data in the buffer. | |
queueData (list< hash< auto >> records) | |
Queues data in the buffer. | |
Private Attributes | |
AbstractBulkOperation | bulk |
The actual bulk insert operation object. | |
Bulk operation object for tables.
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
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