-
大小: 1.35MB文件類型: .zip金幣: 2下載: 8 次發(fā)布日期: 2021-04-07
- 語(yǔ)言: 數(shù)據(jù)庫(kù)
- 標(biāo)簽: sqlcipher??
資源簡(jiǎn)介
sqlcipher-windows-2.1.1
代碼片段和文件信息
/*
**?2001?September?15
**
**?The?author?disclaims?copyright?to?this?source?code.??In?place?of
**?a?legal?notice?here?is?a?blessing:
**
**????May?you?do?good?and?not?evil.
**????May?you?find?forgiveness?for?yourself?and?forgive?others.
**????May?you?share?freely?never?taking?more?than?you?give.
**
*************************************************************************
**?This?file?contains?code?to?implement?the?“sqlite“?command?line
**?utility?for?accessing?SQLite?databases.
*/
#if?(defined(_WIN32)?||?defined(WIN32))?&&?!defined(_CRT_SECURE_NO_WARNINGS)
/*?This?needs?to?come?before?any?includes?for?MSVC?compiler?*/
#define?_CRT_SECURE_NO_WARNINGS
#endif
/*
**?Enable?large-file?support?for?fopen()?and?friends?on?unix.
*/
#ifndef?SQLITE_DISABLE_LFS
#?define?_LARGE_FILE???????1
#?ifndef?_FILE_OFFSET_BITS
#???define?_FILE_OFFSET_BITS?64
#?endif
#?define?_LARGEFILE_SOURCE?1
#endif
#include?
#include?
#include?
#include?
#include?“sqlite3.h“
#include?
#include?
#if?!defined(_WIN32)?&&?!defined(WIN32)
#?include?
#?if?!defined(__RTP__)?&&?!defined(_WRS_KERNEL)
#??include?
#?endif
#?include?
#?include?
#endif
#ifdef?HAVE_EDITLINE
#?include?
#endif
#if?defined(HAVE_READLINE)?&&?HAVE_READLINE==1
#?include?
#?include?
#endif
#if?!defined(HAVE_EDITLINE)?&&?(!defined(HAVE_READLINE)?||?HAVE_READLINE!=1)
#?define?readline(p)?local_getline(pstdin0)
#?define?add_history(X)
#?define?read_history(X)
#?define?write_history(X)
#?define?stifle_history(X)
#endif
#if?defined(_WIN32)?||?defined(WIN32)
#?include?
#define?isatty(h)?_isatty(h)
#define?access(fm)?_access((f)(m))
#undef?popen
#define?popen(ab)?_popen((a)(b))
#undef?pclose
#define?pclose(x)?_pclose(x)
#else
/*?Make?sure?isatty()?has?a?prototype.
*/
extern?int?isatty(int);
#endif
#if?defined(_WIN32_WCE)
/*?Windows?CE?(arm-wince-mingw32ce-gcc)?does?not?provide?isatty()
?*?thus?we?always?assume?that?we?have?a?console.?That?can?be
?*?overridden?with?the?-batch?command?line?option.
?*/
#define?isatty(x)?1
#endif
/*?True?if?the?timer?is?enabled?*/
static?int?enableTimer?=?0;
/*?ctype?macros?that?work?with?signed?characters?*/
#define?IsSpace(X)??isspace((unsigned?char)X)
#define?IsDigit(X)??isdigit((unsigned?char)X)
#define?ToLower(X)??(char)tolower((unsigned?char)X)
#if?!defined(_WIN32)?&&?!defined(WIN32)?&&?!defined(_WRS_KERNEL)
#include?
#include?
/*?Saved?resource?information?for?the?beginning?of?an?operation?*/
static?struct?rusage?sBegin;
/*
**?Begin?timing?an?operation
*/
static?void?beginTimer(void){
??if(?enableTimer?){
????getrusage(RUSAGE_SELF?&sBegin);
??}
}
/*?Return?the?difference?of?two?time_structs?in?seconds?*/
static?double?timeDiff(struct?timeval?*pStart?struct?timeval?*pEnd){
??return?(pEnd->tv_usec?-?pStart->tv_usec)*0.000001?+?
?????????(double)(pEnd->tv_sec?-?pStart->tv_sec);
}
/
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-03-18?18:58??sqlcipher-windows-2.1.1\
?????文件??????????31??2013-03-18?18:58??sqlcipher-windows-2.1.1\.gitattributes
?????文件??????????91??2013-03-18?18:58??sqlcipher-windows-2.1.1\.gitignore
?????文件????????2309??2013-03-18?18:58??sqlcipher-windows-2.1.1\README.md
?????目錄???????????0??2013-03-18?18:58??sqlcipher-windows-2.1.1\Shell\
?????文件????????9339??2013-03-18?18:58??sqlcipher-windows-2.1.1\Shell\Shell.vcxproj
?????文件?????????483??2013-03-18?18:58??sqlcipher-windows-2.1.1\Shell\Shell.vcxproj.filters
?????目錄???????????0??2013-03-18?18:58??sqlcipher-windows-2.1.1\Shell\src\
?????文件???????97493??2013-03-18?18:58??sqlcipher-windows-2.1.1\Shell\src\shell.c
?????文件????????2002??2013-03-18?18:58??sqlcipher-windows-2.1.1\SqlCipher.sln
?????目錄???????????0??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\
?????文件????????9648??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\StaticLib.vcxproj
?????文件????????1003??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\StaticLib.vcxproj.filters
?????目錄???????????0??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\
?????目錄???????????0??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlcipher\
?????文件???????17426??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlcipher\crypto.c
?????文件????????7029??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlcipher\crypto.h
?????文件???????36843??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlcipher\crypto_impl.c
?????文件?????????731??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlcipher\pager.c
?????目錄???????????0??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlite\
?????文件?????4860449??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlite\sqlite3.c
?????文件??????343929??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlite\sqlite3.h
?????文件???????24158??2013-03-18?18:58??sqlcipher-windows-2.1.1\StaticLib\src\sqlite\sqlite3ext.h
評(píng)論
共有 條評(píng)論