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?
Thanks, you 2. Regards, Reinier _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal