add_insertion


Description:

public uint add_insertion (Entry entry, BatchOperationCallback callback)

Add an entry to the BatchOperation, to be inserted on the server when the operation is run.

The insertion will return the inserted version of entry. entry is reffed by the function, so may be freed after it returns.

callback will be called as specified in the documentation for add_query, with an operation_type of INSERTION.

Parameters:

this

a BatchOperation

entry

the Entry to insert

callback

a BatchOperationCallback to call when the insertion is finished, or null

user_data

data to pass to the callback function

Returns:

operation ID for the added insertion, or 0




2022 vala-language.org