-
大小: 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個文件信息
評論
共有 條評論