Class TMySQLConnection

Unit

Declaration

type TMySQLConnection = class(TSQLConnection, iblobconnection)

Description

This item has no description.

Hierarchy

Overview

Methods

Protected Procedure checkerror(const Msg: String);
Protected function StrToStatementType(s : msestring) : TStatementType; override;
Protected Procedure ConnectToServer; virtual;
Protected Procedure SelectDatabase; virtual;
Protected function MySQLDataType(const afield: mysql_field; var NewType: TFieldType; var NewSize: Integer): Boolean;
Protected function MySQLWriteData(const acursor: tsqlcursor; AType: enum_field_types; ASize: Integer; AFieldType: TFieldType;Source, Dest: PChar): Boolean;
Protected procedure DoInternalConnect; override;
Protected procedure DoInternalDisconnect; override;
Protected function GetHandle: pointer; 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 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 function CreateBlobStream(const Field: TField; const Mode: TBlobStreamMode; const acursor: tsqlcursor): TStream; override;
Protected function getblobdatasize: integer; override;
Protected procedure writeblobdata(const atransaction: tsqltransaction; const tablename: string; const acursor: tsqlcursor; const adata: pointer; const alength: integer; const afield: tfield; const aparam: tparam; out newid: string);
Protected procedure setupblobdata(const afield: tfield; const acursor: tsqlcursor; const aparam: tparam);
Protected function identquotechar: msestring; override;
Public constructor create(aowner: tcomponent); override;
Public Function AllocateTransactionHandle: TSQLHandle; 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 procedure UnPrepareStatement(cursor:TSQLCursor); override;
Public procedure FreeFldBuffers(cursor : TSQLCursor); override;
Public procedure AddFieldDefs(const cursor: TSQLCursor; const FieldDefs : TfieldDefs); override;
Public function Fetch(cursor : TSQLCursor) : boolean; 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 function fetchblob(const cursor: tsqlcursor; const fieldnum: integer): ansistring; override;
Public function getinsertid(const atransaction: tsqltransaction): int64; override;

Properties

Public property ServerInfo : String Read FServerInfo;
Public property HostInfo : String Read FHostInfo;
Public property ClientInfo: string read GetClientInfo;
Public property ServerStatus : String read GetServerStatus;
Public property lasterror: integer read flasterror;
Public property lasterrormessage: msestring read flasterrormessage;
Public property lastsqlcode: string read flastsqlcode;
Published property Dialect : integer read FDialect write FDialect default 0;
Published property port: longword read fport write fport default 0;
Published property DatabaseName;
Published property HostName;
Published property KeepConnection;
Published property Params;

Description

Methods

Protected Procedure checkerror(const Msg: String);

This item has no description.

Protected function StrToStatementType(s : msestring) : TStatementType; override;

This item has no description.

Protected Procedure ConnectToServer; virtual;

This item has no description.

Protected Procedure SelectDatabase; virtual;

This item has no description.

Protected function MySQLDataType(const afield: mysql_field; var NewType: TFieldType; var NewSize: Integer): Boolean;

This item has no description.

Protected function MySQLWriteData(const acursor: tsqlcursor; AType: enum_field_types; ASize: Integer; AFieldType: TFieldType;Source, Dest: PChar): Boolean;

This item has no description.

Protected procedure DoInternalConnect; override;

This item has no description.

Protected procedure DoInternalDisconnect; override;

This item has no description.

Protected function GetHandle: pointer; override;

This item has no description.

Protected procedure internalExecute(const cursor: TSQLCursor; const atransaction:tSQLtransaction; const AParams : TmseParams; const autf8: boolean); override;

This item has no description.

Protected function GetTransactionHandle(trans : TSQLHandle): pointer; override;

This item has no description.

Protected function Commit(trans : TSQLHandle) : boolean; override;

This item has no description.

Protected function RollBack(trans : TSQLHandle) : boolean; override;

This item has no description.

Protected function StartdbTransaction(const trans : TSQLHandle; const AParams: tstringlist) : boolean; override;

This item has no description.

Protected procedure internalCommitRetaining(trans : TSQLHandle); override;

This item has no description.

Protected procedure internalRollBackRetaining(trans : TSQLHandle); override;

This item has no description.

Protected procedure UpdateIndexDefs(var IndexDefs : TIndexDefs; const aTableName : string; const acursor: tsqlcursor); override;

This item has no description.

Protected function getprimarykeyfield(const atablename: string; const acursor: tsqlcursor): string; override;

This item has no description.

Protected procedure updateprimarykeyfield(const afield: tfield; const atransaction: tsqltransaction); override;

This item has no description.

Protected function CreateBlobStream(const Field: TField; const Mode: TBlobStreamMode; const acursor: tsqlcursor): TStream; override;

This item has no description.

Protected function getblobdatasize: integer; override;

This item has no description.

Protected procedure writeblobdata(const atransaction: tsqltransaction; const tablename: string; const acursor: tsqlcursor; const adata: pointer; const alength: integer; const afield: tfield; const aparam: tparam; out newid: string);

This item has no description.

Protected procedure setupblobdata(const afield: tfield; const acursor: tsqlcursor; const aparam: tparam);

This item has no description.

Protected function identquotechar: msestring; override;

This item has no description.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Public Function AllocateTransactionHandle: TSQLHandle; override;

This item has no description.

Public Function AllocateCursorHandle(const aowner: icursorclient; const aname: ansistring): TSQLCursor; override;

This item has no description.

Public Procedure DeAllocateCursorHandle(var cursor : TSQLCursor); override;

This item has no description.

Public procedure preparestatement(const cursor: tsqlcursor; const atransaction : tsqltransaction; const asql: msestring; const aparams : tmseparams); override;

This item has no description.

Public procedure UnPrepareStatement(cursor:TSQLCursor); override;

This item has no description.

Public procedure FreeFldBuffers(cursor : TSQLCursor); override;

This item has no description.

Public procedure AddFieldDefs(const cursor: TSQLCursor; const FieldDefs : TfieldDefs); override;

This item has no description.

Public function Fetch(cursor : TSQLCursor) : boolean; override;

This item has no description.

Public function loadfield(const cursor: tsqlcursor; const datatype: tfieldtype; const fieldnum: integer; const buffer: pointer; var bufsize: integer; const aisutf8: boolean): boolean; override;

This item has no description.

Public function fetchblob(const cursor: tsqlcursor; const fieldnum: integer): ansistring; override;

This item has no description.

Public function getinsertid(const atransaction: tsqltransaction): int64; override;

This item has no description.

Properties

Public property ServerInfo : String Read FServerInfo;

This item has no description.

Public property HostInfo : String Read FHostInfo;

This item has no description.

Public property ClientInfo: string read GetClientInfo;

This item has no description.

Public property ServerStatus : String read GetServerStatus;

This item has no description.

Public property lasterror: integer read flasterror;

This item has no description.

Public property lasterrormessage: msestring read flasterrormessage;

This item has no description.

Public property lastsqlcode: string read flastsqlcode;

This item has no description.

Published property Dialect : integer read FDialect write FDialect default 0;

This item has no description.

Published property port: longword read fport write fport default 0;

This item has no description.

Published property DatabaseName;

This item has no description.

Published property HostName;

This item has no description.

Published property KeepConnection;

This item has no description.

Published property Params;

This item has no description.


Generated by PasDoc 0.17.0.snapshot.