On February 12, 2019 12:30:17 PM EST, Zach Wasserman <zachwass2...@gmail.com> wrote: >Hello SQLite Users, > >Is anyone aware of an API I can use to determine which tables are >accessed >by a given query? Or, is there a way to retrieve the parsed AST of a >query? >If this is possible directly through the SQLite shell that would be >great, >but C API would work as well. > >Thank you, >Zach Wasserman >_______________________________________________ >sqlite-users mailing list >sqlite-users@mailinglists.sqlite.org >http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Authorizer callbacks could be (ab)used for this purpose, I would think. <https://sqlite.org/c3ref/set_authorizer.html> I'm not very familiar with SQLite's C interface, though, so I may be dead wrong. -- J. King _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users