240 |
|
procedure CloseDataSets; |
241 |
|
procedure CheckActive; |
242 |
|
procedure CheckInactive; |
243 |
< |
procedure CreateDatabase; |
243 |
> |
procedure CreateDatabase; overload; |
244 |
> |
procedure CreateDatabase(createDatabaseSQL: string); overload; |
245 |
|
procedure DropDatabase; |
246 |
|
procedure ForceClose; |
247 |
|
procedure GetFieldNames(const TableName: string; List: TStrings); |
610 |
|
Connected := true; |
611 |
|
end; |
612 |
|
|
613 |
+ |
procedure TIBDataBase.CreateDatabase(createDatabaseSQL: string); |
614 |
+ |
var info: IDBInformation; |
615 |
+ |
ConnectionType: integer; |
616 |
+ |
SiteName: string; |
617 |
+ |
begin |
618 |
+ |
CheckInactive; |
619 |
+ |
FAttachment := FirebirdAPI.CreateDatabase(createDatabaseSQL,FSQLDialect); |
620 |
+ |
info := FAttachment.GetDBInformation(isc_info_db_id); |
621 |
+ |
info[0].DecodeIDCluster(ConnectionType,FDBName,SiteName); |
622 |
+ |
if assigned(FOnCreateDatabase) and (FAttachment <> nil) then |
623 |
+ |
OnCreateDatabase(self); |
624 |
+ |
end; |
625 |
+ |
|
626 |
|
procedure TIBDataBase.DropDatabase; |
627 |
|
begin |
628 |
|
CheckActive; |