-
sqlite3_DLL_sourceCode_BuildWith_Qt_VS2017.7z 数据库加密下载
资源介绍
sqlite3 数据库支持加密,分别使用QtCreator 和 VS2017 分别编译出64位 debug release DLL , (QtCreator只有动态 使用mingW 64 MSVC20147) (VS2017 有动态DLL和静态库 V14.1 )
有工程源码,也可自行编译。
实例:
QString exepath = QCoreApplication::applicationDirPath() +"/GameData.db";
int result=sqlite3_open(exepath.toLatin1().data(),&db);
result=sqlite3_key(db,"abcd",4); //使用密码,第一次为设置密码
result=sqlite3_exec(db,"CREATE TABLE [MyTable] ([ID] INTEGER PRIMARY KEY NOT NULL,[MyText] TEXT NULL)",0,0,0);
result=sqlite3_exec(db,"INSERT INTO MyTable (MyText) VALUES ('测试!')",0,0,0);
result=sqlite3_close(db);
压缩包目录结构:
+---sqlite3_QT
| | .qmake.stash
| | sqlite3.pro
| | sqlite3.pro.user
| | sqlite3.vcxproj
| | sqlite3.vcxproj.filters
| | sqlite3.vcxproj.user
| |
| +---mingw_x64
| | +---debug
| | | libsqlite3.a
| | | sqlite3.dll
| | | sqlite3.h
| | | sqlite3userauth.h
| | |
| | \---release
| | libsqlite3.a
| | sqlite3.dll
| | sqlite3.h
| | sqlite3userauth.h
| |
| +---msvc2017_x64
| | +---debug
| | | sqlite3.dll
| | | sqlite3.h
| | | sqlite3.pdb
| | | sqlite3userauth.h
| | |
| | \---release
| | sqlite3.dll
| | sqlite3.h
| | sqlite3userauth.h
| |
| \---sqlite3
| \---secure
| \---src
|
\---sqlite3_VS2017
| sqlite3.sln
| sqlite3.vcxproj
| sqlite3.vcxproj.filters
| sqlite3.vcxproj.user
|
+---msvc2017_x64
| +---debug
| | +---dyn
| | | sqlite3.dll
| | | sqlite3.h
| | | sqlite3.pdb
| | | sqlite3userauth.h
| | |
| | \---static
| | sqlite3.h
| | sqlite3.lib
| | sqlite3.pdb
| | sqlite3userauth.h
| |
| \---release
| +---dyn
| | sqlite3.dll
| | sqlite3.h
| | sqlite3.pdb
| | sqlite3userauth.h
| |
| \---static
| sqlite3.h
| sqlite3.lib
| sqlite3.pdb
| sqlite3userauth.h
|
\---sqlite3
\---secure
\---src