1.Dd December 19, 2018 2.Dt SQLITE3REBASER_REBASE 3 3.Os 4.Sh NAME 5.Nm sqlite3rebaser_rebase 6.Nd Rebase a changeset 7.Sh SYNOPSIS 8.Ft int 9.Fo sqlite3rebaser_rebase 10.Fa "sqlite3_rebaser*" 11.Fa "int nIn" 12.Fa "const void *pIn" 13.Fa "int *pnOut" 14.Fa "void **ppOut " 15.Fc 16.Sh DESCRIPTION 17Argument pIn must point to a buffer containing a changeset nIn bytes 18in size. 19This function allocates and populates a buffer with a copy of the changeset 20rebased rebased according to the configuration of the rebaser object 21passed as the first argument. 22If successful, (*ppOut) is set to point to the new buffer containing 23the rebased changset and (*pnOut) to its size in bytes and SQLITE_OK 24returned. 25It is the responsibility of the caller to eventually free the new buffer 26using sqlite3_free(). 27Otherwise, if an error occurs, (*ppOut) and (*pnOut) are set to zero 28and an SQLite error code returned. 29