Class tsqlite3connection

Unit

Declaration

type tsqlite3connection = class(tcustomsqlconnection, idbcontroller, iblobconnection)

Description

Hierarchy

Overview

Methods

Protected procedure loaded; override;
Protected function getfloatdate: boolean; override;
Protected function getint64currency: boolean; override;
Protected function getassqltext(const field : tfield) : msestring; override;
Protected function getassqltext(const param : tparam) : msestring; override;
Protected procedure resetstatement(const astatement: psqlite3_stmt);
Protected procedure checkerror(const aerror: integer);
Protected function cantransaction: boolean;
Protected procedure DoInternalConnect; override;
Protected procedure DoInternalDisconnect; override;
Protected function GetHandle: pointer; override;
Protected Function AllocateTransactionHandle: TSQLHandle; override;
Protected procedure internalExecute(const cursor: TSQLCursor; const atransaction: tsqltransaction; const AParams : TmseParams; const autf8: boolean); override;
Protected function GetTransactionHandle(trans : TSQLHandle): pointer; override;
Protected function Commit(trans : TSQLHandle) : boolean; override;
Protected function RollBack(trans : TSQLHandle) : boolean; override;
Protected function StartdbTransaction(const trans : TSQLHandle; const aParams: tstringlist) : boolean; override;
Protected procedure internalCommitRetaining(trans : TSQLHandle); override;
Protected procedure internalRollBackRetaining(trans : TSQLHandle); override;
Protected function getblobdatasize: integer; override;
Protected function CreateBlobStream(const Field: TField; const Mode: TBlobStreamMode; const acursor: tsqlcursor): TStream; override;
Protected procedure execsql(const asql: string);
Protected procedure UpdateIndexDefs(var IndexDefs : TIndexDefs; const aTableName : string; const acursor: tsqlcursor); override;
Protected function getprimarykeyfield(const atablename: string; const acursor: tsqlcursor): string; override;
Protected procedure updateprimarykeyfield(const afield: tfield; const atransaction: tsqltransaction); override;
Protected procedure beginupdate; override;
Protected procedure endupdate; override;
Public constructor create(aowner: tcomponent); override;
Public Function AllocateCursorHandle(const aowner: icursorclient; const aname: ansistring) : TSQLCursor; override;
Public Procedure DeAllocateCursorHandle(var cursor : TSQLCursor); override;
Public procedure preparestatement(const cursor: tsqlcursor; const atransaction : tsqltransaction; const asql: msestring; const aparams : tmseparams); override;
Public function Fetch(cursor : TSQLCursor) : boolean; override;
Public procedure AddFieldDefs(const cursor: TSQLCursor; const FieldDefs : TfieldDefs); override;
Public procedure UnPrepareStatement(cursor : TSQLCursor); override;
Public procedure FreeFldBuffers(cursor : TSQLCursor); override;
Public function loadfield(const cursor: tsqlcursor; const datatype: tfieldtype; const fieldnum: integer; const buffer: pointer; var bufsize: integer; const aisutf8: boolean): boolean; override;
Public procedure updateutf8(var autf8: boolean); override;
Public function getinsertid(const atransaction: tsqltransaction): int64; override;
Public function fetchblob(const cursor: tsqlcursor; const fieldnum: integer): ansistring; override;
Public function stringquery(const asql: string): stringarty;
Public function stringsquery(const asql: string): stringararty;

Properties

Public property lasterror: integer read flasterror;
Public property lasterrormessage: msestring read flasterrormessage;
Published property DatabaseName: filenamety read getdatabasename write setdatabasename;
Published property Connected: boolean read getconnected write setconnected default false;
Published property controller: tdbcontroller read fcontroller write setcontroller;
Published property options: sqliteoptionsty read foptions write setoptions default [];
Published property busytimeoutms: integer read fbusytimeoutms write setbusytimeoutms default 0;
Published property Transaction;
Published property transactionwrite;
Published property afterconnect;
Published property beforedisconnect;

Description

Methods

Protected procedure loaded; override;
 
Protected function getfloatdate: boolean; override;
 
Protected function getint64currency: boolean; override;
 
Protected function getassqltext(const field : tfield) : msestring; override;
 
Protected function getassqltext(const param : tparam) : msestring; override;
 
Protected procedure resetstatement(const astatement: psqlite3_stmt);
 
Protected procedure checkerror(const aerror: integer);
 
Protected function cantransaction: boolean;
 
Protected procedure DoInternalConnect; override;
 
Protected procedure DoInternalDisconnect; override;
 
Protected function GetHandle: pointer; override;
 
Protected Function AllocateTransactionHandle: TSQLHandle; override;
 
Protected procedure internalExecute(const cursor: TSQLCursor; const atransaction: tsqltransaction; const AParams : TmseParams; const autf8: boolean); override;
 
Protected function GetTransactionHandle(trans : TSQLHandle): pointer; override;
 
Protected function Commit(trans : TSQLHandle) : boolean; override;
 
Protected function RollBack(trans : TSQLHandle) : boolean; override;
 
Protected function StartdbTransaction(const trans : TSQLHandle; const aParams: tstringlist) : boolean; override;
 
Protected procedure internalCommitRetaining(trans : TSQLHandle); override;
 
Protected procedure internalRollBackRetaining(trans : TSQLHandle); override;
 
Protected function getblobdatasize: integer; override;
 
Protected function CreateBlobStream(const Field: TField; const Mode: TBlobStreamMode; const acursor: tsqlcursor): TStream; override;
 
Protected procedure execsql(const asql: string);
 
Protected procedure UpdateIndexDefs(var IndexDefs : TIndexDefs; const aTableName : string; const acursor: tsqlcursor); override;
 
Protected function getprimarykeyfield(const atablename: string; const acursor: tsqlcursor): string; override;
 
Protected procedure updateprimarykeyfield(const afield: tfield; const atransaction: tsqltransaction); override;
 
Protected procedure beginupdate; override;
 
Protected procedure endupdate; override;
 
Public constructor create(aowner: tcomponent); override;
 
Public Function AllocateCursorHandle(const aowner: icursorclient; const aname: ansistring) : TSQLCursor; override;
 
Public Procedure DeAllocateCursorHandle(var cursor : TSQLCursor); override;
 
Public procedure preparestatement(const cursor: tsqlcursor; const atransaction : tsqltransaction; const asql: msestring; const aparams : tmseparams); override;
 
Public function Fetch(cursor : TSQLCursor) : boolean; override;
 
Public procedure AddFieldDefs(const cursor: TSQLCursor; const FieldDefs : TfieldDefs); override;
 
Public procedure UnPrepareStatement(cursor : TSQLCursor); override;
 
Public procedure FreeFldBuffers(cursor : TSQLCursor); override;
 
Public function loadfield(const cursor: tsqlcursor; const datatype: tfieldtype; const fieldnum: integer; const buffer: pointer; var bufsize: integer; const aisutf8: boolean): boolean; override;
 
Public procedure updateutf8(var autf8: boolean); override;
 
Public function getinsertid(const atransaction: tsqltransaction): int64; override;
 
Public function fetchblob(const cursor: tsqlcursor; const fieldnum: integer): ansistring; override;
 
Public function stringquery(const asql: string): stringarty;
 
Public function stringsquery(const asql: string): stringararty;
 

Properties

Public property lasterror: integer read flasterror;
 
Public property lasterrormessage: msestring read flasterrormessage;
 
Published property DatabaseName: filenamety read getdatabasename write setdatabasename;
 
Published property Connected: boolean read getconnected write setconnected default false;
 
Published property controller: tdbcontroller read fcontroller write setcontroller;
 
Published property options: sqliteoptionsty read foptions write setoptions default [];
 
Published property busytimeoutms: integer read fbusytimeoutms write setbusytimeoutms default 0;
 
Published property Transaction;
 
Published property transactionwrite;
 
Published property afterconnect;
 
Published property beforedisconnect;
 

Generated by PasDoc 0.16.0.