Small. Fast. Reliable.
Choose any three.

## Session Module C Interface

## Add A Single Change To A Changegroup

>     int sqlite3changegroup_add_change(
>       sqlite3_changegroup*,
>       sqlite3_changeset_iter*
>     );

This function adds the single change currently indicated by the iterator passed as the second argument to the changegroup object. The rules for adding the change are just as described for sqlite3changegroup_add().

If the change is successfully added to the changegroup, SQLITE_OK is returned. Otherwise, an SQLite error code is returned.

The iterator must point to a valid entry when this function is called. If it does not, SQLITE_ERROR is returned and no change is added to the changegroup. Additionally, the iterator must not have been opened with the SQLITE_CHANGESETAPPLY_INVERT flag. In this case SQLITE_ERROR is also returned.

See also lists of Objects, Constants, and Functions.