[fpc-pascal] Using database-specific functionality with TSQLConnector

Reinier Olislagers reinierolislagers at gmail.com
Thu Oct 4 14:36:14 CEST 2012


On 3-10-2012 9:05, michael.vancanneyt at wisa.be wrote:
> On Tue, 2 Oct 2012, Reinier Olislagers wrote:
> 
>> Hi list,
>>
>>
>>  IBConn:TIBConnection;
>> ...
>> IBConn:=TIBConnection(FConn.ProxyConnection);
>> IBConn.UserName:=FConn.UserName;
>> IBConn.Password:=FConn.Password;
>> IBConn.DatabaseName:=FConn.DatabaseName;
>> ...
>> IBConn.CreateDB;
>>
>> Is that the best/easiest way? Would it make sense to make the proxy code
>> in TSQLConnector public?

> To do what you want, we'd need to promote CreateDB to TSQLConnection,
> and let
> descendants handle it if they can.
> 
> Then it can be delegated to the proxy in TSQLConnector.
Ok.




More information about the fpc-pascal mailing list