Matthias Huening wrote:
Hi,
- - Connection.enable_load_extension(enabled) to allow/disallow extension
loading. Allows you to use fulltext search extension, for example ;-)
The following code (from the docs) produces an error:
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
# Load the fulltext search extension
con.enable_load_extension(True)
con.execute("select load_extension('./fts3.so')")
con.enable_load_extension(False)
Error is:
con.execute("select load_extension('./fts3.so')")
pysqlite2._sqlite.OperationalError: Das angegebene Modul wurde nicht
gefunden.
Where should I look for the module?
The sources are in ext/fts3 in the SQLite source tree. I haven't found
any Makefile, so I it myself using this gcc command:
$ cd .../ext/fts3
$ gcc -shared -o ~/src/gh/pysqlite/build/lib.linux-i686-2.5/fts3.so *.c
-lsqlite3
-- Gerhard
--
http://mail.python.org/mailman/listinfo/python-list