Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TSLEngine

Unit

SLEngine

Declaration

type TSLEngine = class()

Description

engine representation

. SQLite API + databeses management. It is possible to have more then one engine at a time. Application can for example use databases with different page sizes.

Methods

Overview

Public constructor Create (aConnect: Boolean = True; const aLibName: String = '');
Public destructor Destroy; override;
Protected procedure DoLog (const aText: String);
Public function Encoding: String;
Public function ErrorString (const anErrNo: Integer): String;
Public function GetDB (const anIndex: Integer): TObject;
Public function GetDBCount: Integer;
Public function RegisterDB (aDB: TObject): Boolean;
Public function SQLite_AggregateContext (Func: Pointer; nBytes: Integer): Pointer;
Public function SQLite_AggregateCount (Func: Pointer): Pointer;
Public procedure SQLite_BusyHandler (aDB: TObject);
Public procedure SQLite_BusyTimeout (aDB: TObject; const aTimeOut: Integer);
Public procedure SQLite_Cancel (aDB: TObject);
Public function SQLite_Changes (aDB: TObject): Integer;
Public procedure SQLite_Close (aDB: TObject);
Public function SQLite_Compile (aDB: TObject; const aSQLStatement: String; var aTail: String; var aSQLite_VM: Integer; var anErrMsg: String): Integer; cdecl;
Public function SQLite_Complete (P: PChar): boolean;
Public function SQLite_CreateAggregate (DB: Pointer; const Name: PChar; nArg: Integer; xStep: Pointer; xFinalize: Pointer; pUserData: Pointer): Integer;
Public function SQLite_CreateFunction (DB: Pointer; const Name: PChar; nArg: Integer; xFunc: Pointer; pUserData: Pointer): Integer;
Public function SQLite_Exec (anObj: TObject; aSQLStatement: String; var anErrMsg: String; aCallbackPtr: Pointer): Integer;
Public function SQLite_Finalize (aSQLite_VM: Integer; var anErrMsg: String): Integer; cdecl;
Public procedure SQLite_FreeMem (P: PChar);
Public procedure SQLite_FreeTable (Table: Pointer);
Public function SQLite_FunctionType (DB: Pointer; const Name: PChar; DataType: Integer): Integer;
Public function SQLite_GetTable (aDB: TObject; aSQLStatement: String; var aResultPtr: Pointer; var aRowCount: Cardinal; var aColCount: Cardinal; var anErrMsg: String): Integer;
Public function SQLite_LastInsertRow (aDB: TObject): integer;
Public function SQLite_Open (aDBName: String; aMode: Integer; var anErrMsg: String): Pointer;
Public procedure SQLite_SetResultDouble (Func: Pointer; Res: Double);
Public procedure SQLite_SetResultError (Func: Pointer; const pRes: PChar; Len: Integer);
Public procedure SQLite_SetResultInt (Func: Pointer; Res: Integer);
Public function SQLite_SetResultString (Func: Pointer; const pRes: PChar; Len: Integer): PChar;
Public function SQLite_Step (aSQLite_VM: Integer; var aColCount: Cardinal; var aValuePtr: Pointer; var aColsPtr: Pointer): Integer; cdecl;
Public function SQLite_UserData (Func: Pointer): Pointer;
Public function Version: String;

Description

Public constructor Create (aConnect: Boolean = True; const aLibName: String = '');

 

Public destructor Destroy; override;

 

Protected procedure DoLog (const aText: String);

Calling log event for the text.

Public function Encoding: String;

http://www.sqlite.org/c_interface.html 3.7 encoding used by engine.

Public function ErrorString (const anErrNo: Integer): String;

Converts error number to string

Public function GetDB (const anIndex: Integer): TObject;

Database defined by specified index.

Public function GetDBCount: Integer;

Number of databases.

Public function RegisterDB (aDB: TObject): Boolean;

Adding database to FDBList.

Public function SQLite_AggregateContext (Func: Pointer; nBytes: Integer): Pointer;

 

Public function SQLite_AggregateCount (Func: Pointer): Pointer;

 

Public procedure SQLite_BusyHandler (aDB: TObject);

 

Public procedure SQLite_BusyTimeout (aDB: TObject; const aTimeOut: Integer);

 

Public procedure SQLite_Cancel (aDB: TObject);

 

Public function SQLite_Changes (aDB: TObject): Integer;

 

Public procedure SQLite_Close (aDB: TObject);

 

Public function SQLite_Compile (aDB: TObject; const aSQLStatement: String; var aTail: String; var aSQLite_VM: Integer; var anErrMsg: String): Integer; cdecl;

 

Public function SQLite_Complete (P: PChar): boolean;

http://www.sqlite.org/c_interface.html 3.5 - testing if SQL is complite query string.

Public function SQLite_CreateAggregate (DB: Pointer; const Name: PChar; nArg: Integer; xStep: Pointer; xFinalize: Pointer; pUserData: Pointer): Integer;

 

Public function SQLite_CreateFunction (DB: Pointer; const Name: PChar; nArg: Integer; xFunc: Pointer; pUserData: Pointer): Integer;

 

Public function SQLite_Exec (anObj: TObject; aSQLStatement: String; var anErrMsg: String; aCallbackPtr: Pointer): Integer;

 

Public function SQLite_Finalize (aSQLite_VM: Integer; var anErrMsg: String): Integer; cdecl;

 

Public procedure SQLite_FreeMem (P: PChar);

 

Public procedure SQLite_FreeTable (Table: Pointer);

 

Public function SQLite_FunctionType (DB: Pointer; const Name: PChar; DataType: Integer): Integer;

 

Public function SQLite_GetTable (aDB: TObject; aSQLStatement: String; var aResultPtr: Pointer; var aRowCount: Cardinal; var aColCount: Cardinal; var anErrMsg: String): Integer;

 

Public function SQLite_LastInsertRow (aDB: TObject): integer;

 

Public function SQLite_Open (aDBName: String; aMode: Integer; var anErrMsg: String): Pointer;

 

Public procedure SQLite_SetResultDouble (Func: Pointer; Res: Double);

 

Public procedure SQLite_SetResultError (Func: Pointer; const pRes: PChar; Len: Integer);

 

Public procedure SQLite_SetResultInt (Func: Pointer; Res: Integer);

 

Public function SQLite_SetResultString (Func: Pointer; const pRes: PChar; Len: Integer): PChar;

 

Public function SQLite_Step (aSQLite_VM: Integer; var aColCount: Cardinal; var aValuePtr: Pointer; var aColsPtr: Pointer): Integer; cdecl;

 

Public function SQLite_UserData (Func: Pointer): Pointer;

 

Public function Version: String;

http://www.sqlite.org/c_interface.html 3.6 library version.

Properties

Overview

Public property OnLog: TLogEvent;

Description

Public property OnLog: TLogEvent;

For every call of engine application can log.


Generated by PasDoc 0.8.7 on N 16- lis 2003 16:05:18