|Think about Loose Coupling|
sqlcipher for sqliteby TomKane (Beadle)
|on Dec 28, 2012 at 17:36 UTC||Need Help??|
TomKane has asked for the
wisdom of the Perl Monks concerning the following question:
I have been using sqlite on Win32 for some time now. I am now trying to use the sqlite3.dll file that is derived from the sqlcipher source code. This is a relatively new extension of SQLite that provides a pragma of "key" that lets you encrypt the entire database.
It took me a while, but I finally found the place for swapping out the dll file: C:/Perl/site/lib/auto/DBD/SQLite/SQLite.dll (where the new dll file was appropriately renamed). I have placed the new sqlite.dll and sqlite.lib files in the directory, but I do not have a sqlite.exp file, such as was provided in the original perl/sqlite installation.
Here is the very brief program that I used to test the new dll:
The error message I'm getting is "Can't find 'boot_DBD__SQLite' symbol in" the dll file.
I have a bad feeling that I'm going to have to rebuild SQLite.pm or the .xs file, or both, or something else that's really scary, in order to get this to work.
If anyone has wisdom on the matters of linking perl to dll files (to sqlite.dll in particular), I would greatly appreciate your advice.