On Tue, 22 Nov 2011, Reinier Olislagers wrote:

On 22-11-2011 10:32, michael.vancanneyt-0is9kj9s...@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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to