howto

sqlite3 用SQLCipher 加密后 命令行下如何重新打开和读取

≯℡__Kan透↙ 提交于 2019-12-06 15:08:51
http://sqlcipher.net/sqlcipher-api/#key PRAGMA key The process of creating a new, encrypted database is called “keying” the database. SQLCipher uses just-in-time key derivation at the point it is first needed for an operation. This means that the key (and any options) must be set before the first operation on the database . As soon as the database is touched (e.g. SELECT, CREATE TABLE, UPDATE, etc.) and pages need to be read or written, the key is prepared for use. satckoverflow.com上有人提到过在 sqlite> sqlcipher-shell32.exe test.db sqlite> PRAGMA KEY = '12345'; 给刚打开的数据库设置密码后,马上接着往数据库执行create table和

pyqt sqlite3 icu fts3 fts4 enabled 。全文搜索 功能

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 03:23:02
目标:windows下让pyqt测试程序支持sqlite3 icu fts3/4的 全文搜索 功能。 环境: windows XP pyqt 安装文件 PyQt-Py2.7-x86-gpl-4.9.6-1.exe pyqt 源码包 PyQt-win-gpl-4.9.4.zip python 版本2.7 qt是官方下载的 4.8.4 EXE 安装包 难点: 一般自己的 测试程序 提示“no such module: fts4”错误,可以按照 网上《 Qt SQLite / SQLCipher driver plugin with ICU 》 一文的如下说明就能得到支持icu fts3/4的qt sqlite3 plugins: In order to make ICU work with the default SQLite driver plugin, you have to modify the .pro file, add the following lines DEFINES += SQLITE_ENABLE_ICU INCLUDEPATH += "Path/To/icu/include" LIBS += -L"Path/To/icu/lib" -licuuc -licuin and rebuild your SQLite driver plugin. 据此,我在$QT/4