#define SQLITE_CHANGEGROUP_CONFIG_PATCHSET 1
The following values may be passed as the 2nd parameter to sqlite3changegroup_config().
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.