We want to use FTS3 with Python, but Python’s built-in sqlite3 module doesn’t have FTS. Since we can’t re-compile Python on the target systems, I was hoping to load it as a DLL using load_extension().
Our C++ apps can certainly link a static SQLite with FTS3. Maybe there’s another way to get FTS3 working with a stock Python installation on Windows? N. On Oct 13, 2010, at 9:58 PM, Max Vlasov wrote: > On Thu, Oct 14, 2010 at 1:04 AM, Nate Silva <n...@desi.com> wrote: > >> (Although FTS can be compiled into SQLite, I would like a DLL so I can >> dynamically load the extension into environments where I have a pre-compiled >> SQLite that doesn’t have full text search.) >> >> > Nate, > I think compile-time errors in this case is just a part of the problem. For > such logic to work one has to develop the api/library with this possible > feature in mind. For example to resolve global variables or being ready for > unexpected library unloading while the main db is still opened. If you > really want to save space/memory, why don't you just prepare two versions of > dlls, with and without fts3 and choose which one to load during run-time? Or > if you want the variant without fts to be statically linked, it's not that > hard to move function pointers to some struct and change the pointers in the > struct either to static functions or dynamic ones depending on the state of > the program. > > Max > _______________________________________________ > 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