Icon TEDBSession

Unit: edbcomps

Inherits From TComponent

Use the TEDBSession component to manage a local or remote session within an application. A session acts like a "virtual user" and each new session component used in an application maintains its own database connections, table buffers, table/view/query result set cursors, etc. Because of the unique requirements of a multi-threaded application, ElevateDB requires that you use a separate TEDBSession component for each thread in use, thus treating each thread as a separate "virtual user".

A default TEDBSession component is created automatically when the application is started and can be referenced via the global Session function in the edbcomps unit.

Information Applications that maintain multiple sessions can manage them through the TEDBEngine component. A TEDBEngine component is created automatically when an application is started and can be referenced via the global Engine function in the edbcomps unit.


Image