On 26 June 2012 15:00, kyan <[email protected]> wrote:

> > Is there any possibility to be notified when a table is created (when a
> > "CREATE TABLE XXX" is executed)?
>
> You could try installing a profile callback using sqlite3_profile()
> (see http://www.sqlite.org/c3ref/profile.html). Of course this
> callback will be called for any kind of SQL or DDL statement that gets
> executed in your database so you will have to distinguish CREATE TABLE
> statements by parsing the SQL command text in the profiler callback's
> second argument.
>

This is similar to what I'm doing at the moment (parsing the SQL before
execution).
Thanks for the tip anyway!

Vivien
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to