-
大小: 253KB文件类型: .zip金币: 2下载: 1 次发布日期: 2021-05-27
- 语言: 数据库
- 标签: CppSQLite3.2 SQLite3
资源简介
基于SQLite 3.4.0封装的最新CppSQLite类 ,里面包含了各种使用demo,以及接口封装等。
代码片段和文件信息
////////////////////////////////////////////////////////////////////////////////
// CppSQLite3 - A C++ wrapper around the SQLite3 embedded database library.
//
// Copyright (c) 2004..2007 Rob Groves. All Rights Reserved. rob.groves@btinternet.com
//
// Permission to use copy modify and distribute this software and its
// documentation for any purpose without fee and without a written
// agreement is hereby granted provided that the above copyright notice
// this paragraph and the following two paragraphs appear in all copies
// modifications and distributions.
//
// IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT
// INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING LOST
// PROFITS ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION
// EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
// PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION IF
// ANY PROVIDED HEREUNDER IS PROVIDED “AS IS“. THE AUTHOR HAS NO OBLIGATION
// TO PROVIDE MAINTENANCE SUPPORT UPDATES ENHANCEMENTS OR MODIFICATIONS.
//
// V3.0 03/08/2004 -Initial Version for sqlite3
//
// V3.1 16/09/2004 -Implemented getXXXXField using sqlite3 functions
// -Added CppSQLiteDB3::tableExists()
//
// V3.2 01/07/2005 -Fixed execScalar to handle a NULL result
// 12/07/2007 -Added int64 functions to CppSQLite3Query
// -Throw exception from CppSQLite3DB::close() if error
// -Trap above exception in CppSQLite3DB::~CppSQLite3DB()
// -Fix to CppSQLite3DB::compile() as provided by Dave Rollins.
// -sqlite3_prepare replaced with sqlite3_prepare_v2
// -Added Name based parameter binding to CppSQLite3Statement.
////////////////////////////////////////////////////////////////////////////////
#include “CppSQLite3.h“
#include
// Named constant for passing to CppSQLite3Exception when passing it a string
// that cannot be deleted.
static const bool DONT_DELETE_MSG=false;
////////////////////////////////////////////////////////////////////////////////
// Prototypes for SQLite functions not included in SQLite DLL but copied below
// from SQLite encode.c
////////////////////////////////////////////////////////////////////////////////
int sqlite3_encode_binary(const unsigned char *in int n unsigned char *out);
int sqlite3_decode_binary(const unsigned char *in unsigned char *out);
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
CppSQLite3Exception::CppSQLite3Exception(const int nErrCode
char* szErrMess
bool bDeleteMsg/*=true*/) :
mnErrCode(nErrCode)
{
mpszErrMess = sqlite3_mprintf(“%s[%d]: %s“
errorCodeAsString(
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-12 12:23 CppSQLite3_2\
目录 0 2017-11-12 12:23 CppSQLite3_2\Common\
文件 35791 2007-07-12 22:15 CppSQLite3_2\Common\CppSQLite3.cpp
文件 8193 2007-07-12 21:27 CppSQLite3_2\Common\CppSQLite3.h
文件 2055 2006-08-12 09:54 CppSQLite3_2\Common\sqlite3.def
文件 362029 2007-06-18 12:45 CppSQLite3_2\Common\sqlite3.dll
文件 13990 2006-04-07 17:40 CppSQLite3_2\Common\sqlite3.exp
文件 117441 2007-06-18 12:44 CppSQLite3_2\Common\sqlite3.h
文件 31054 2007-07-12 20:24 CppSQLite3_2\Common\sqlite3.lib
目录 0 2017-11-12 12:23 CppSQLite3_2\CppSQLiteDemo\
目录 0 2017-11-12 12:23 CppSQLite3_2\CppSQLiteDemoExt\
文件 10972 2007-07-12 21:33 CppSQLite3_2\CppSQLiteDemoExt\CppSQLite3DemoExt.cpp
文件 4145 2004-08-13 22:13 CppSQLite3_2\CppSQLiteDemoExt\CppSQLiteDemoExt.dsp
文件 555 2004-05-14 20:55 CppSQLite3_2\CppSQLiteDemoExt\CppSQLiteDemoExt.dsw
文件 921 2007-07-12 21:30 CppSQLite3_2\CppSQLiteDemoExt\CppSQLiteDemoExt.sln
文件 5236 2007-07-12 21:30 CppSQLite3_2\CppSQLiteDemoExt\CppSQLiteDemoExt.vcproj
目录 0 2017-11-12 12:23 CppSQLite3_2\CppSQLiteDemoMT\
文件 12381 2007-07-12 22:22 CppSQLite3_2\CppSQLiteDemoMT\CppSQLite3DemoMT.cpp
文件 4248 2004-08-13 23:31 CppSQLite3_2\CppSQLiteDemoMT\CppSQLiteDemoMT.dsp
文件 553 2004-03-17 22:44 CppSQLite3_2\CppSQLiteDemoMT\CppSQLiteDemoMT.dsw
文件 919 2006-04-07 17:45 CppSQLite3_2\CppSQLiteDemoMT\CppSQLiteDemoMT.sln
文件 5289 2006-04-07 17:45 CppSQLite3_2\CppSQLiteDemoMT\CppSQLiteDemoMT.vcproj
文件 11230 2007-07-12 22:15 CppSQLite3_2\CppSQLiteDemo\CppSQLite3Demo.cpp
文件 4149 2004-08-03 23:30 CppSQLite3_2\CppSQLiteDemo\CppSQLiteDemo.dsp
文件 549 2004-03-05 22:19 CppSQLite3_2\CppSQLiteDemo\CppSQLiteDemo.dsw
文件 915 2007-07-12 22:31 CppSQLite3_2\CppSQLiteDemo\CppSQLiteDemo.sln
文件 5206 2007-07-12 22:31 CppSQLite3_2\CppSQLiteDemo\CppSQLiteDemo.vcproj
目录 0 2017-11-12 12:23 CppSQLite3_2\ManagedDemo\
文件 2355 2004-05-27 22:51 CppSQLite3_2\ManagedDemo\AssemblyInfo.cpp
文件 10316 2007-07-12 20:14 CppSQLite3_2\ManagedDemo\ManagedDemo.cpp
文件 911 2004-08-15 22:42 CppSQLite3_2\ManagedDemo\ManagedDemo.sln
............此处省略3个文件信息
相关资源
- delphi调用wxsqlite3
- sqlite3 64位动态库包含 .lib文件
- StudentInformationManagementSystem.zip
- sqlite3Linux版本
- 支持加密的sqlite 最新版本sqlite3.7.7.
- sqlite3 x84 x64 开发包
- 最新sqlite3 x64位的lib
- linux电子词典项目(sqlite3数据库)
- sqlite3嵌入式数据库加密
- sqlite-tools-win32-x86-3240000.zip
- GDAL_BUILD(release).rar
- SQLite3 for windows
- 1_qt+sqlite3程序
- sqlite3.h sqlite3头文件
- sqlite3.exe247412
- sqlite3.h头文件
- iOS sqlite3的使用増删改查
- SQLite3图形界面数据库查看工具
- wxSqlite3 for Delphi
- linux环境下QT语言写的学生成绩管理系
- sqlite3.dll
- Sqlite3对于2进制数据的操作。
- SQLite3基础教程(高清PDF中文版)
- Ubuntu下安装sqlite3数据库
- boa与数据库数据交互的
- linux多人聊天室
- Nodejs操作Sqlite3数据库封装
- QT+sqlite3仓库管理系统
- sqlite simple delphi修正版支持中文路径
- iOS数据库SQLite3基本操作并将内容显示
评论
共有 条评论