119 |
|
uses |
120 |
|
Classes, SysUtils, DB, FBMessages, IBExternals; |
121 |
|
|
122 |
+ |
const |
123 |
+ |
{Interface version information} |
124 |
+ |
FBIntf_Major = 1; |
125 |
+ |
FBIntf_Minor = 0; |
126 |
+ |
FBIntf_Release = 1; |
127 |
+ |
FBIntf_Version = '1.0.1'; |
128 |
+ |
|
129 |
|
{These include files are converted from the 'C' originals in the Firebird API |
130 |
|
and define the various constants used by the API} |
131 |
|
|
588 |
|
property Count: integer read getCount; |
589 |
|
end; |
590 |
|
|
591 |
+ |
|
592 |
+ |
TPerfStats = (psCurrentMemory, psMaxMemory, |
593 |
+ |
psRealTime, psUserTime, psBuffers, |
594 |
+ |
psReads, psWrites, psFetches,psDeltaMemory); |
595 |
+ |
|
596 |
+ |
TPerfCounters = array[TPerfStats] of Int64; |
597 |
+ |
|
598 |
|
{The IStatement interface provides access to an SQL Statement once it has been |
599 |
|
initially prepared. The interface is returned from the IAttachment interface. |
600 |
|
} |
614 |
|
function GetAttachment: IAttachment; |
615 |
|
function GetTransaction: ITransaction; |
616 |
|
procedure SetRetainInterfaces(aValue: boolean); |
617 |
+ |
procedure EnableStatistics(aValue: boolean); |
618 |
+ |
function GetPerfStatistics(var stats: TPerfCounters): boolean; |
619 |
|
property MetaData: IMetaData read GetMetaData; |
620 |
|
property SQLParams: ISQLParams read GetSQLParams; |
621 |
|
property SQLStatementType: TIBSQLStatementTypes read GetSQLStatementType; |
848 |
|
function OpenArray(transaction: ITransaction; RelationName, ColumnName: string; ArrayID: TISC_QUAD): IArray; |
849 |
|
function CreateArray(transaction: ITransaction; RelationName, ColumnName: string): IArray; overload; |
850 |
|
function CreateArray(transaction: ITransaction; ArrayMetaData: IArrayMetaData): IArray; overload; |
851 |
+ |
function CreateArrayMetaData(SQLType: cardinal; tableName: string; columnName: string; |
852 |
+ |
Scale: integer; size: cardinal; charSetID: cardinal; dimensions: cardinal; |
853 |
+ |
bounds: TArrayBounds): IArrayMetaData; |
854 |
|
|
855 |
|
{Database Information} |
856 |
|
function GetSQLDialect: integer; |
986 |
|
{Database connections} |
987 |
|
function AllocateDPB: IDPB; |
988 |
|
function OpenDatabase(DatabaseName: string; DPB: IDPB; RaiseExceptionOnConnectError: boolean=true): IAttachment; |
989 |
< |
function CreateDatabase(DatabaseName: string; DPB: IDPB; RaiseExceptionOnError: boolean=true): IAttachment; |
989 |
> |
function CreateDatabase(DatabaseName: string; DPB: IDPB; RaiseExceptionOnError: boolean=true): IAttachment; overload; |
990 |
> |
function CreateDatabase(sql: string; aSQLDialect: integer; RaiseExceptionOnError: boolean=true): IAttachment; overload; |
991 |
|
|
992 |
|
{Start Transaction against multiple databases} |
993 |
|
function AllocateTPB: ITPB; |