, , .. (. 3). ( ) . TDataSet, . .
TDataSource. TDataSource - , .
TDataSource . , .
1.
. TDataSource. .
, , Interbase.
.
-, , . .
-, . , , . , - - . .
. . .
:
- , ;
- . . , , ;
- ;
|
|
- (, );
- . Active. True, . . Open, , Close, .
TIBDatabase
InterBase TIBDatabase. InterBase Express TIBDatabase. InterBase Express, , TIBDatabase.
DatabaseName. ( ) gdb. .
, , (.2).
2. TIBDatabase
.
Connection InterBase ( ), Protocol Browse .
Database Parameters , . ( Character Set).
( , , , . .) Params LoginPrompt.
property DatabaseName: String;
property Connected: Boolean;
property AllowStreamedConnected: Boolean;
. False , Connected True. , , DatabaseName connected .
, ,
property Params: TStrings;
. Params :
user_name=sysdba password=masterkey
property DBParamByDPB: [const Idx: Integer]: String;
, Params.
,
procedure TestConnected: Boolean;
True, False.
property IdleTimer: Integer;
.
|
|
TiBDatabase , TiBTransaction (. ).
property DefaultTransaction: TiBTransaction;
. , , . , .
TiBDatabase .
procedure CreateDatabase;
, . , , Params (. ).
procedure DropDatabase;
,
DatabaseName.
List , ,
procedure GetTableNames(List: TStrings; SystemTables: Boolean = False);
SystemTables .
TIBTransaction
- , , , (.. , ).
TIBTransaction InterBase. TiBDatabase
property DefaultDatabase: TiBDatabase;
TiBDatabase. DefaultTransaction (. ).
property Databases[Index: Integer]: TiBDatabase;
property DatabaseCount: Integer;
procedure StartTransaction;
procedure Commit;
,
procedure Rollback;
property Active: Boolean;
property InTransaction: Boolean;
True, False.
InterBase commit-Retaining RollbackRetaining. , .