SQLITE3CHANGEGROUP_OUTPUT(3) | Library Functions Manual | SQLITE3CHANGEGROUP_OUTPUT(3) |
sqlite3changegroup_output
—
sqlite3changegroup_output
(sqlite3_changegroup*,
int *pnData, void **ppData );
As with the output of the sqlite3session_changeset() and sqlite3session_patchset() functions, all changes related to a single table are grouped together in the output of this function. Tables appear in the same order as for the very first changeset added to the changegroup. If the second or subsequent changesets added to the changegroup contain changes for tables that do not appear in the first changeset, they are appended onto the end of the output changeset, again in the order in which they are first encountered.
If an error occurs, an SQLite error code is returned and the output variables (*pnData) and (*ppData) are set to 0. Otherwise, SQLITE_OK is returned and the output variables are set to the size of and a pointer to the output buffer, respectively. In this case it is the responsibility of the caller to eventually free the buffer using a call to sqlite3_free().
December 19, 2018 | NetBSD 9.0 |