Contents Index Commit method GetCA method pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    ULConnection class

CountUploadRows method


Prototype 

ul_u_long CountUploadRows(
ul_publication_mask mask
ul_u_long threshold)

Description 

Returns the number of rows that need to be uploaded when the next synchronization takes place.

You can use this function to determine if a synchronization is needed.

Parameters 

publication-mask    A set of publications to check. A value of 0 corresponds to the entire database. The set is supplied as a mask. For example, the following mask corresponds to publications PUB1 and PUB2.:

UL_PUB_PUB1 | UL_PUB_PUB2

For more information on publication masks, see publication synchronization parameter.

threshold    A value that determines the maximum number of rows to count, and so limits the amount of time taken by the call. A value of 0 corresponds to no limit. A value of 1 determines if any rows need to be synchronized.

Returns 

The number of rows to be uploaded.


Contents Index Commit method GetCA method pdf/preface.pdf