[fpc-pascal] Re: Firebird Connection documentation: suggestions? remarks?

Reinier Olislagers reinierolislagers at gmail.com
Tue Nov 22 11:02:35 CET 2011


On 22-11-2011 10:32, michael.vancanneyt-0Is9KJ9Sb0A at public.gmane.org wrote:
>> Still don't understand what the TIBConnectionDef/TConnectionDef class is
>> used for?
> 
> It is uses for the TSQLConnector component.
> 
>> Actually, I don't understand registering/unregistering connections.
>> SQLDB maintains a connection list with connections, but what happens
>> with that/what do you use it for? Some kind of connection pooling?
>>
> 
> It does not register a connection. It registers a connection type, this is
> different.
> 
> in TSQLConnector you say Type = 'IBConnection' (or something like it)
> and then it searches in the list of registered types for the type it must
> create, and creates it.
> 
Duh. It all seems so clear now: it is more to do with having a
"connection factory" that can pick a specialized connector for you at
runtime rather than something to do with connection pooling etc.
The end result is that you can write a database-independent program, add
run-time configuration and some drivers and let the client choose the
database server, right?

Thanks, you 2.

Regards,
Reinier



More information about the fpc-pascal mailing list