Thanks! I will study the sqlite3_auto_extension closer. I had trouble compiling the ext....c file, but I can't remember what the errors were and I just got back in town, so I will have to work my back to trying to compile it.
Steve. On 05/10/2011 01:24 PM, Mays, Steve wrote: >> Question 1.) Can "exentension_functions.c" be compiled along with >> "sqlite3.c" into one executable? >> >> Question 2.) If so, how? >> >> Question 3.) If "exentension_functions.c" be compiled into one >> executable along with "sqlite3.c", do I need to do anything special or >> will sqlite3_exec() know what to do with queries like: > You can compile together into one binary but the SQLite main code won't know > that your code co-exists. There are two options available to you: > > 1 - [Not recommended] Patch the internal openDatabase method to call your > init method (this is how the extensions distributed with SQLite are added). > > 2 - Call sqlite3_auto_extension from your code that does SQLite > initialization. > > Roger _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users