Documentation is not very clear about this point… in order to apply a change 
set starting from a session should just I write something like:

int rc= sqlite3session_changeset(session, &pnChangeset, &ppChangeset);
rc = sqlite3changeset_apply (db, pnChangeset, ppChangeset, NULL, NULL, NULL);

Is that all?
--
Marco Bambini
http://www.sqlabs.com
http://twitter.com/sqlabs
http://instagram.com/sqlabs



On 03 Jan 2014, at 15:54, Richard Hipp <d...@sqlite.org> wrote:

> The standard pre-built amalgamation won't work with sessions.  You have to
> pull source code from the "sessions" branch:
> http://www.sqlite.org/src/timeline?r=sessions
> 
> 
> On Fri, Jan 3, 2014 at 9:50 AM, Marco Bambini <ma...@sqlabs.net> wrote:
> 
>> Hello,
>> I am using the sqlite3_session module amalgamated into the main sqlite3.c
>> file (3.8.2).
>> I defined both:
>> 
>> #define SQLITE_ENABLE_SESSION           1
>> #define SQLITE_ENABLE_PREUPDATE_HOOK    1
>> 
>> but compiler is not able to find all the sqlite3_preupdate* functions.
>> I am missing something?
>> --
>> Marco Bambini
>> http://www.sqlabs.com
>> http://twitter.com/sqlabs
>> http://instagram.com/sqlabs
>> 
>> 
>> 
>> _______________________________________________
>> sqlite-users mailing list
>> sqlite-users@sqlite.org
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>> 
> 
> 
> 
> -- 
> D. Richard Hipp
> d...@sqlite.org
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to