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

Class TSLDatabase

Unit

SLDB

Declaration

type TSLDatabase = class()

Description

database component.

Methods

Overview

Public procedure BeginTransaction;
Public procedure Close;
Public procedure CloseDataSets;
Public function CloseVM (var aSQLite_VM: Integer; var anErrMsg: String): Integer;
Public procedure Commit;
Public constructor Create (AOwner: TComponent); override;
Public destructor Destroy; override;
Protected function DoGetDBList (aStrs: TStrings): Boolean;
Protected function DoGetTable (aStrs: TStrings): Boolean;
Public function ExecSQL (anObj: TObject; const aSQL: String; aForceTrans: Boolean; var anErrMsg: String): Integer;
Public procedure FreeTable (aPtr: Pointer);
Public function GetDBInfo (const aDbName: String): TDBInfo;
Protected function GetDBListCount: Integer;
Protected function GetDBListItem (const anIdx: Integer): TDBInfo;
Protected function GetFunCount: Integer;
Protected function GetFunItem (const anIdx: Integer): TObject;
Public function GetIndexInfo (const aTblName: String; const anIdxName: String): TIdxInfo;
Public function GetIndexList (const aTblName: String; aStrs: TStrings): Boolean;
Public function GetTable (const aSQL: String; var aResult: Pointer; var aRecCount: Cardinal; var aColCount: Cardinal; var anErrMsg: String): Integer;
Protected function GetTableCount: Integer;
Protected function GetTableItem (const anIdx: Integer): TTblInfo;
Public function GetTblInfo (const aTblName: String): TTblInfo;
Protected procedure InitializeDB;
Protected procedure InitializeFun (aFun: TObject = nil);
Public function LastInsertRow: Integer;
Protected procedure Loaded; override;
Public procedure Open;
Public function OpenVM (const aSQL: String; var aTail: String; var aSQLite_VM: Integer; var anErrMsg: String): Integer;
Public procedure RefreshDBList;
Public procedure RefreshTblList;
Public procedure RegisterAggregate (aFunObject: TObject);
Public procedure RegisterDataSet (aDtSet: TObject);
Public procedure RegisterFunction (aFun: TObject);
Public procedure Rollback;
Public function VMStep (const aSQLite_VM: Integer; var aColCount: Cardinal; var aValuePtr: Pointer; var aColsPtr: Pointer): Integer;

Description

Public procedure BeginTransaction;

Starting transaction.

Public procedure Close;

closing database connection.

Public procedure CloseDataSets;

closing all datasets connected to the database

Public function CloseVM (var aSQLite_VM: Integer; var anErrMsg: String): Integer;

 

Public procedure Commit;

Commiting transaction.

Public constructor Create (AOwner: TComponent); override;

 

Public destructor Destroy; override;

 

Protected function DoGetDBList (aStrs: TStrings): Boolean;

 

Protected function DoGetTable (aStrs: TStrings): Boolean;

 

Public function ExecSQL (anObj: TObject; const aSQL: String; aForceTrans: Boolean; var anErrMsg: String): Integer;

query engine with Exec function (callback)

Public procedure FreeTable (aPtr: Pointer);

 

Public function GetDBInfo (const aDbName: String): TDBInfo;

info of a database (SQLite file) defined by name. See also TDBInfo.

Protected function GetDBListCount: Integer;

 

Protected function GetDBListItem (const anIdx: Integer): TDBInfo;

 

Protected function GetFunCount: Integer;

 

Protected function GetFunItem (const anIdx: Integer): TObject;

 

Public function GetIndexInfo (const aTblName: String; const anIdxName: String): TIdxInfo;

info of index specified by name. See also TIdxInfo.

Public function GetIndexList (const aTblName: String; aStrs: TStrings): Boolean;

list of indices for table specified by name.

Public function GetTable (const aSQL: String; var aResult: Pointer; var aRecCount: Cardinal; var aColCount: Cardinal; var anErrMsg: String): Integer;

query engine with GetTable API function (all data at once)

Protected function GetTableCount: Integer;

 

Protected function GetTableItem (const anIdx: Integer): TTblInfo;

 

Public function GetTblInfo (const aTblName: String): TTblInfo;

info of a table defined by name. See also TTblInfo.

Protected procedure InitializeDB;

 

Protected procedure InitializeFun (aFun: TObject = nil);

 

Public function LastInsertRow: Integer;

 

Protected procedure Loaded; override;

 

Public procedure Open;

opening database connection.

Public function OpenVM (const aSQL: String; var aTail: String; var aSQLite_VM: Integer; var anErrMsg: String): Integer;

 

Public procedure RefreshDBList;

refreshing cached information about attached databases (SQLite files).

Public procedure RefreshTblList;

refreshing cached information about tables/views structure.

Public procedure RegisterAggregate (aFunObject: TObject);

 

Public procedure RegisterDataSet (aDtSet: TObject);

 

Public procedure RegisterFunction (aFun: TObject);

 

Public procedure Rollback;

Cancelling (rooling back) transaction.

Public function VMStep (const aSQLite_VM: Integer; var aColCount: Cardinal; var aValuePtr: Pointer; var aColsPtr: Pointer): Integer;

 

Properties

Overview

Published property Active: Boolean;
Public property DBList[const Idx: Integer]: TDBInfo;
Public property DBListCount: Integer;
Published property DBName: TFileName;
Public property Engine: TSLEngine;
Public property Fun[const Idx: Integer]: TObject;
Public property FunCount: Integer;
Public property Handle: Pointer;
Public property InTransaction: Boolean;
Published property SLDBOptions: TSLDBOptions;
Public property Table[const Idx: Integer]: TTblInfo;
Public property TableCount: Integer;

Description

Published property Active: Boolean;

Determine if database is connected.

Public property DBList[const Idx: Integer]: TDBInfo;

Information about attached database (SQLite file). See also TDBInfo.

Public property DBListCount: Integer;

Number of databases (SQLite files) being attached.

Published property DBName: TFileName;

Name of file with main database.

Public property Engine: TSLEngine;

Engine object.

Public property Fun[const Idx: Integer]: TObject;

 

Public property FunCount: Integer;

 

Public property Handle: Pointer;

Handle to SQLite object

Public property InTransaction: Boolean;

Determinig if database is in transaction.

Published property SLDBOptions: TSLDBOptions;

Options speciffied for database. See also TSLDBOptions.

Public property Table[const Idx: Integer]: TTblInfo;

Table or view selected by it's numver. See also TTblInfo.

Public property TableCount: Integer;

Number of tables/views.


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