|
Qore BulkSqlUtil Module Reference
1.0
|
base class for bulk DML upsert operations More...

Public Member Functions | |
| constructor (SqlUtil::Table target, *hash opts) | |
| creates the object from the supplied arguments More... | |
| constructor (SqlUtil::AbstractTable target, *hash opts) | |
| creates the object from the supplied arguments More... | |
| private | flushImpl () |
| executes bulk DML upserts in the database with internally queued data | |
| private | init (*hash opts) |
| common constructor initialization | |
Public Member Functions inherited from BulkSqlUtil::AbstractBulkOperation | |
| nothing | commit () |
| flushes any queued data and commits the transaction | |
| constructor (string name, SqlUtil::Table target, *hash opts) | |
| creates the object from the supplied arguments More... | |
| constructor (string name, SqlUtil::AbstractTable target, *hash opts) | |
| creates the object from the supplied arguments More... | |
| destructor () | |
| throws an exception if there is data pending in the internal row data cache; make sure to call flush() or discard() before destroying the object More... | |
| discard () | |
| discards any buffered batched data; this method should be called before destroying the object if an error occurs More... | |
| flush () | |
| flushes any remaining batched data to the database; this method should always be called before committing the transaction or destroying the object More... | |
| private | flushIntern () |
| flushes queued data to the database | |
| Qore::SQL::AbstractDatasource | getDatasource () |
| returns the AbstractDatasource object associated with this object | |
| int | getRowCount () |
| returns the affected row count | |
| SqlUtil::AbstractTable | getTable () |
| returns the underlying SqlUtil::AbstractTable object | |
| string | getTableName () |
| returns the table name | |
| private | init (*hash opts) |
| common constructor initialization | |
| queueData (hash data) | |
queues row data in the block buffer; the block buffer is flushed to the DB if the buffer size reaches the limit defined by the block_size option; does not commit the transaction More... | |
| queueData (list l) | |
queues row data in the block buffer; the block buffer is flushed to the DB if the buffer size reaches the limit defined by the block_size option; does not commit the transaction More... | |
| nothing | rollback () |
| discards any queued data and rolls back the transaction | |
| private | setupInitialRow (hash row) |
| sets up the block buffer given the initial template row for inserting | |
| private | setupInitialRowColumns (hash row) |
| sets up the block buffer given the initial template hash of lists for inserting | |
Additional Inherited Members | |
Public Attributes inherited from BulkSqlUtil::AbstractBulkOperation | |
| const | OptionDefaults |
| default option values | |
| const | OptionKeys |
| option keys for this object | |
base class for bulk DML upsert operations
This class assists with bulk upsert (SQL merge) operations into a target table.
block_size rows have been queued.| BulkSqlUtil::BulkUpsertOperation::constructor | ( | SqlUtil::Table | target, |
| *hash | opts | ||
| ) |
creates the object from the supplied arguments
| target | the target table object |
| opts | an optional hash of options for the object as follows:
|
| BulkSqlUtil::BulkUpsertOperation::constructor | ( | SqlUtil::AbstractTable | target, |
| *hash | opts | ||
| ) |
creates the object from the supplied arguments
| target | the target table object |
| opts | an optional hash of options for the object as follows:
|