 |
Qore BulkSqlUtil Module Reference
1.3
|
Qore::SQL::AbstractDatasource getDatasource()
returns the AbstractDatasource object associated with this object
int size()
returns the current size of the cache as a number of rows
queueData(hash data)
queues row data in the block buffer; the block buffer is flushed to the DB if the buffer size reaches...
discard()
discards any buffered batched data; this method should be called before destroying the object if an e...
const OptionKeys
option keys for this object
Definition: AbstractBulkOperation.qc.dox.h:89
hash hbuf
buffer for bulk operations
Definition: AbstractBulkOperation.qc.dox.h:104
SqlUtil::AbstractTable getTable()
returns the underlying SqlUtil::AbstractTable object
Qore AbstractBulkOperation class definition.
Definition: AbstractBulkOperation.qc.dox.h:34
flushIntern()
flushes queued data to the database
abstract flushImpl()
flushes queued data to the database
constructor(string name, SqlUtil::Table target, *hash opts)
creates the object from the supplied arguments
int getRowCount()
returns the affected row count
setupInitialRow(hash row)
sets up the block buffer given the initial template row for inserting
string opname
operation name
Definition: AbstractBulkOperation.qc.dox.h:119
int row_count
row count
Definition: AbstractBulkOperation.qc.dox.h:116
queueData(list l)
queues row data in the block buffer; the block buffer is flushed to the DB if the buffer size reaches...
setupInitialRowColumns(hash row)
sets up the block buffer given the initial template hash of lists for inserting
constructor(string name, SqlUtil::AbstractTable target, *hash opts)
creates the object from the supplied arguments
string getTableName()
returns the table name
nothing commit()
flushes any queued data and commits the transaction
const OptionDefaults
default option values
Definition: AbstractBulkOperation.qc.dox.h:93
hash< auto > hash(object obj)
nothing rollback()
discards any queued data and rolls back the transaction
init(*hash opts)
common constructor initialization
softint block_size
bulk operation block size
Definition: AbstractBulkOperation.qc.dox.h:101
hash cval
"constant" row values; must be equal in all calls to queueData
Definition: AbstractBulkOperation.qc.dox.h:107
*code info_log
an optional info logging callback; must accept a sprintf()-style format specifier and optional argume...
Definition: AbstractBulkOperation.qc.dox.h:113
base class for bulk DML operations
Definition: AbstractBulkOperation.qc.dox.h:85
destructor()
throws an exception if there is data pending in the internal row data cache; make sure to call flush(...
list cval_keys
"constant" row value keys
Definition: AbstractBulkOperation.qc.dox.h:110
flush()
flushes any remaining batched data to the database; this method should always be called before commit...
SqlUtil::AbstractTable table
the target table object
Definition: AbstractBulkOperation.qc.dox.h:98
list ret_args
list of "returning" columns
Definition: AbstractBulkOperation.qc.dox.h:122