disqlite3api.hpp
来自「DELPHI 访问SQLITE3 数据库的VCL控件」· HPP 代码 · 共 615 行 · 第 1/3 页
HPP
615 行
int iColumn;
Byte op;
Byte usable;
int iTermOffset;
} ;
typedef Tsqlite3_index_constraint Tsqlite3_index_constraint_array[178956970];
typedef Tsqlite3_index_constraint *Psqlite3_index_constraint_array;
struct Tsqlite3_index_orderby
{
int iColumn;
Byte Desc;
} ;
typedef Tsqlite3_index_orderby Tsqlite3_index_orderby_array[268435455];
typedef Tsqlite3_index_orderby *Psqlite3_index_orderby_array;
struct Tsqlite3_index_constraint_usage
{
int argvIndex;
Byte omit;
} ;
typedef Tsqlite3_index_constraint_usage Tsqlite3_index_constraint_usage_array[268435455];
typedef Tsqlite3_index_constraint_usage *Psqlite3_index_constraint_usage_array;
#pragma pack(push, 1)
struct TSQLite3_index_info
{
int nConstraint;
Tsqlite3_index_constraint *aconstraint;
int nOrderBy;
Tsqlite3_index_orderby *aOrderBy;
Tsqlite3_index_constraint_usage *aConstraintUsage;
int idxNum;
char *idxStr;
int needToFreeIdxStr;
int orderByConsumed;
double estimatedCost;
} ;
#pragma pack(pop)
#pragma option push -b-
enum TDISQLite3Affinity { afInteger, afText, afNone, afReal, afNumeric };
#pragma option pop
#pragma option push -b-
enum TDISQLite3DatabaseType { dtMain, dtTemp, dtAttached };
#pragma option pop
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE System::ResourceString _RSQLite3Error;
#define Disqlite3api_RSQLite3Error System::LoadResourceString(&Disqlite3api::_RSQLite3Error)
extern PACKAGE System::ResourceString _RSQLite3ErrorMsg;
#define Disqlite3api_RSQLite3ErrorMsg System::LoadResourceString(&Disqlite3api::_RSQLite3ErrorMsg)
static const char SQLITE3_IDENTIFIER_QUOTE_CHAR = '\x22';
static const char SQLITE3_STRING_QUOTE_CHAR = '\x27';
static const Shortint SQLITE_OK = 0x0;
static const Shortint SQLITE_ERROR = 0x1;
static const Shortint SQLITE_INTERNAL = 0x2;
static const Shortint SQLITE_PERM = 0x3;
static const Shortint SQLITE_ABORT = 0x4;
static const Shortint SQLITE_BUSY = 0x5;
static const Shortint SQLITE_LOCKED = 0x6;
static const Shortint SQLITE_NOMEM = 0x7;
static const Shortint SQLITE_READONLY = 0x8;
static const Shortint SQLITE_INTERRUPT = 0x9;
static const Shortint SQLITE_IOERR = 0xa;
static const Shortint SQLITE_CORRUPT = 0xb;
static const Shortint SQLITE_NOTFOUND = 0xc;
static const Shortint SQLITE_FULL = 0xd;
static const Shortint SQLITE_CANTOPEN = 0xe;
static const Shortint SQLITE_PROTOCOL = 0xf;
static const Shortint SQLITE_EMPTY = 0x10;
static const Shortint SQLITE_SCHEMA = 0x11;
static const Shortint SQLITE_TOOBIG = 0x12;
static const Shortint SQLITE_CONSTRAINT = 0x13;
static const Shortint SQLITE_MISMATCH = 0x14;
static const Shortint SQLITE_MISUSE = 0x15;
static const Shortint SQLITE_NOLFS = 0x16;
static const Shortint SQLITE_AUTH = 0x17;
static const Shortint SQLITE_FORMAT = 0x18;
static const Shortint SQLITE_RANGE = 0x19;
static const Shortint SQLITE_NOTADB = 0x1a;
static const Shortint SQLITE_ROW = 0x64;
static const Shortint SQLITE_DONE = 0x65;
static const Word SQLITE_IOERR_READ = 0x10a;
static const Word SQLITE_IOERR_SHORT_READ = 0x20a;
static const Word SQLITE_IOERR_WRITE = 0x30a;
static const Word SQLITE_IOERR_FSYNC = 0x40a;
static const Word SQLITE_IOERR_DIR_FSYNC = 0x50a;
static const Word SQLITE_IOERR_TRUNCATE = 0x60a;
static const Word SQLITE_IOERR_FSTAT = 0x70a;
static const Word SQLITE_IOERR_UNLOCK = 0x80a;
static const Word SQLITE_IOERR_RDLOCK = 0x90a;
static const Shortint SQLITE_COPY = 0x0;
static const Shortint SQLITE_CREATE_INDEX = 0x1;
static const Shortint SQLITE_CREATE_TABLE = 0x2;
static const Shortint SQLITE_CREATE_TEMP_INDEX = 0x3;
static const Shortint SQLITE_CREATE_TEMP_TABLE = 0x4;
static const Shortint SQLITE_CREATE_TEMP_TRIGGER = 0x5;
static const Shortint SQLITE_CREATE_TEMP_VIEW = 0x6;
static const Shortint SQLITE_CREATE_TRIGGER = 0x7;
static const Shortint SQLITE_CREATE_VIEW = 0x8;
static const Shortint SQLITE_DELETE = 0x9;
static const Shortint SQLITE_DROP_INDEX = 0xa;
static const Shortint SQLITE_DROP_TABLE = 0xb;
static const Shortint SQLITE_DROP_TEMP_INDEX = 0xc;
static const Shortint SQLITE_DROP_TEMP_TABLE = 0xd;
static const Shortint SQLITE_DROP_TEMP_TRIGGER = 0xe;
static const Shortint SQLITE_DROP_TEMP_VIEW = 0xf;
static const Shortint SQLITE_DROP_TRIGGER = 0x10;
static const Shortint SQLITE_DROP_VIEW = 0x11;
static const Shortint SQLITE_INSERT = 0x12;
static const Shortint SQLITE_PRAGMA = 0x13;
static const Shortint SQLITE_READ = 0x14;
static const Shortint SQLITE_SELECT = 0x15;
static const Shortint SQLITE_TRANSACTION = 0x16;
static const Shortint SQLITE_UPDATE = 0x17;
static const Shortint SQLITE_ATTACH = 0x18;
static const Shortint SQLITE_DETACH = 0x19;
static const Shortint SQLITE_ALTER_TABLE = 0x1a;
static const Shortint SQLITE_REINDEX = 0x1b;
static const Shortint SQLITE_ANALYZE = 0x1c;
static const Shortint SQLITE_CREATE_VTABLE = 0x1d;
static const Shortint SQLITE_DROP_VTABLE = 0x1e;
static const Shortint SQLITE_FUNCTION = 0x1f;
static const Shortint SQLITE_DENY = 0x1;
static const Shortint SQLITE_IGNORE = 0x2;
static const Shortint SQLITE_INTEGER = 0x1;
static const Shortint SQLITE_FLOAT = 0x2;
static const Shortint SQLITE_TEXT = 0x3;
static const Shortint SQLITE_BLOB = 0x4;
static const Shortint SQLITE_NULL = 0x5;
extern PACKAGE TSQLite_Destructor SQLITE_STATIC;
extern PACKAGE TSQLite_Destructor SQLITE_TRANSIENT;
static const Shortint SQLITE_UTF8 = 0x1;
static const Shortint SQLITE_UTF16LE = 0x2;
static const Shortint SQLITE_UTF16BE = 0x3;
static const Shortint SQLITE_UTF16 = 0x4;
static const Shortint SQLITE_ANY = 0x5;
static const Shortint SQLITE_INDEX_CONSTRAINT_EQ = 0x2;
static const Shortint SQLITE_INDEX_CONSTRAINT_GT = 0x4;
static const Shortint SQLITE_INDEX_CONSTRAINT_LE = 0x8;
static const Shortint SQLITE_INDEX_CONSTRAINT_LT = 0x10;
static const Shortint SQLITE_INDEX_CONSTRAINT_GE = 0x20;
static const Shortint SQLITE_INDEX_CONSTRAINT_MATCH = 0x40;
#define SQLITE_MASTER_QUOTED "\"sqlite_master\""
#define SQLITE_TEMP_MASTER_QUOTED "\"sqlite_temp_master\""
static const wchar_t WC_REPLACEMENT_CHARACTER = wchar_t(0xfffd);
extern PACKAGE TDIJulianDate __fastcall DateToJulianDate(const System::TDateTime ADate);
extern PACKAGE TDIJulianDate __fastcall DateTimeToJulianDate(const System::TDateTime ADateTime);
extern PACKAGE AnsiString __fastcall FloatToSqliteStr(const Extended AValue, const char ADecimalSeparator
, const int APrecision);
extern PACKAGE AnsiString __fastcall FloatToSqlStr(const Extended AValue, const char ADecimalSeparator
, int APrecision);
extern PACKAGE TDIJulianDate __fastcall HmsToJulianDate(const int AHour, const int AMinute, const int
ASecond);
extern PACKAGE System::TDateTime __fastcall JulianDateToDate(const TDIJulianDate AJulianDate);
extern PACKAGE System::TDateTime __fastcall JulianDateToDateTime(const TDIJulianDate AJulianDate);
extern PACKAGE System::TDateTime __fastcall JulianDateToTime(const TDIJulianDate AJulianDate);
extern PACKAGE void __fastcall JulianDateToHms(const TDIJulianDate AJulianDate, /* out */ int &AHour
, /* out */ int &AMinute, /* out */ int &ASecond);
extern PACKAGE void __fastcall JulianDateToYmd(const TDIJulianDate AJulianDate, /* out */ int &AYear
, /* out */ int &AMonth, /* out */ int &ADay);
extern PACKAGE Extended __fastcall Power10(int Power);
extern PACKAGE AnsiString __fastcall QuotedStr(const AnsiString s, const char Quote);
extern PACKAGE WideString __fastcall QuotedStr16(const WideString s, const wchar_t Quote);
extern PACKAGE int __fastcall SqlStrToFloat(char * p, unsigned l, /* out */ Extended &n, const char
ADecimalSeparator)/* overload */;
extern PACKAGE int __fastcall SqlStrToFloat(const AnsiString s, /* out */ Extended &n, const char ADecimalSeparator
)/* overload */;
extern PACKAGE Extended __fastcall SqlStrToFloatDef(const char * p, const unsigned l, const Extended
ADefault, const char ADecimalSeparator)/* overload */;
extern PACKAGE Extended __fastcall SqlStrToFloatDef(const AnsiString s, const Extended ADefault, const
char ADecimalSeparator)/* overload */;
extern PACKAGE unsigned __fastcall StrLen16(const wchar_t * Str);
extern PACKAGE TDIJulianDate __fastcall TimeToJulianDate(const System::TDateTime ATime);
extern PACKAGE TDIJulianDate __fastcall YmdToJulianDate(int AYear, int AMonth, const int ADay);
extern PACKAGE TDISQLite3Affinity __fastcall sqlite3_affinity(const AnsiString ADeclaration);
extern PACKAGE TDISQLite3Affinity __fastcall sqlite3_affinity16(const WideString ADeclaration);
extern PACKAGE int __fastcall sqlite3_bind_params(const TDISQLite3StatementHandle Stmt, const System::TVarRec
* Params, const int Params_Size);
extern PACKAGE int __fastcall sqlite3_bind_str(const TDISQLite3StatementHandle Stmt, const int ParamIdx
, const AnsiString Data);
extern PACKAGE int __fastcall sqlite3_bind_str16(const TDISQLite3StatementHandle Stmt, const int ParamIdx
, const WideString Data);
extern PACKAGE int __fastcall sqlite3_bind_variant(const TDISQLite3StatementHandle Stmt, const int ParamIdx
, const Variant &Data);
extern PACKAGE int __fastcall sqlite3_bind_VarRec(const TDISQLite3StatementHandle Stmt, const int ParamIdx
, const System::TVarRec &Data);
extern PACKAGE AnsiString __fastcall sqlite3_database_master(const AnsiString ADatabaseName);
extern PACKAGE WideString __fastcall sqlite3_database_master16(const WideString ADatabaseName);
extern PACKAGE TDISQLite3DatabaseType __fastcall sqlite3_database_type(const AnsiString ADatabaseName
);
extern PACKAGE TDISQLite3DatabaseType __fastcall sqlite3_database_type16(const WideString ADatabaseName
);
extern PACKAGE void __fastcall sqlite3_exec_fast(const TDISQLite3DatabaseHandle DB, const AnsiString
SQL);
extern PACKAGE void __fastcall sqlite3_exec_fast16(const TDISQLite3DatabaseHandle DB, const WideString
SQL);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?