Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Function tdbc-connection

tdbc-connection

Creates and initializes a TConnection with the parameters previously passed to the tdbc-set-default function.

Returns:
A newly created TConnection.

Tipically in a Tea program only connections to a single database are established. This function, in conjunction with tdbc-set-default, makes it easier to create connections to that single database. At the start of the Tea program a call to tdbc-set-default is made to define the database connection parameters. From then on calls to tdbc-connection will create TConnection instances connected to that particular database.

It is the caller responsability to explicitly close the TConnection obtained in this way.


Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC
Report a bug or request new features
© 2002