SQLITE_CHANGEGROUP_CONFIG_PATCHSET(3)

NAME
SQLITE_CHANGEGROUP_CONFIG_PATCHSET - options for sqlite3changegroup_config()

SYNOPSIS
#include <sqlite3.h>
#define SQLITE_CHANGEGROUP_CONFIG_PATCHSET

DESCRIPTION
The following values may be passed as the 2nd parameter to sqlite3changegroup_config(). A changegroup object generates either a changeset or patchset. Usually, this is determined by whether the first call to sqlite3changegroup_add() is passed a changeset or a patchset. Or, if the first changes are added to the changegroup object using the sqlite3changegroup_change_xxx() APIs, then this option may be used to configure whether the changegroup object generates a changeset or patchset.

When this option is invoked, parameter pArg must point to a value of type int. If the changegroup currently contains zero changes, and the value of the int variable is zero or greater than zero, then the changegroup is configured to generate a changeset or patchset, respectively. It is a no-op, not an error, if the changegroup is not configured because it has already started accumulating changes.

Before returning, the int variable is set to 0 if the changegroup is configured to generate a changeset, or 1 if it is configured to generate a patchset.

IMPLEMENTATION NOTES
These declarations were extracted from the interface documentation at line 13353.

    #define SQLITE_CHANGEGROUP_CONFIG_PATCHSET 1