-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3MAB8ACgkQmOOfHg372QT+mQCfXNxVKe+mmV20tnjR/+2YAx6e
9H0AnRlbEvc+1OpMr2l6zlECqZOO0oWE
=V9CH
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to