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

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Tue Nov 22 12:12:28 CET 2011



On Tue, 22 Nov 2011, Reinier Olislagers wrote:

> 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?

Exactly.

Michael.



More information about the fpc-pascal mailing list