179 |
|
{Database connections} |
180 |
|
function AllocateDPB: IDPB; |
181 |
|
function OpenDatabase(DatabaseName: string; DPB: IDPB; RaiseExceptionOnConnectError: boolean=true): IAttachment; |
182 |
< |
function CreateDatabase(DatabaseName: string; DPB: IDPB; RaiseExceptionOnError: boolean=true): IAttachment; |
182 |
> |
function CreateDatabase(DatabaseName: string; DPB: IDPB; RaiseExceptionOnError: boolean=true): IAttachment; overload; |
183 |
> |
function CreateDatabase(sql: string; aSQLDialect: integer; RaiseExceptionOnError: boolean=true): IAttachment; overload; |
184 |
|
|
185 |
|
{Start Transaction against multiple databases} |
186 |
|
function AllocateTPB: ITPB; |
456 |
|
if (Result <> nil) and not Result.IsConnected then |
457 |
|
Result := nil; |
458 |
|
end; |
459 |
+ |
|
460 |
+ |
function TFB25ClientAPI.CreateDatabase(sql: string; aSQLDialect: integer; |
461 |
+ |
RaiseExceptionOnError: boolean): IAttachment; |
462 |
+ |
begin |
463 |
+ |
Result := TFB25Attachment.CreateDatabase(sql,aSQLDialect, RaiseExceptionOnError ); |
464 |
+ |
if (Result <> nil) and not Result.IsConnected then |
465 |
+ |
Result := nil; |
466 |
+ |
end; |
467 |
|
|
468 |
|
function TFB25ClientAPI.AllocateSPB: ISPB; |
469 |
|
begin |