Version
Database Connection
- To connect to your database, you have to create a handle: this handle actually links the interface classes with the corresponding implementation classes mapped to your DBMS. This handle is implemented by the DATABASE_APPL class:
database_appl: DATABASE_APPL [ODBC]
-- Database handle.
...
create database_appl.login (a_name, a_psswd)
database_appl.set_base
- Once your handle is created, you have to create a session manager which will allow you to manage your database; specifically, to establish a connection, disconnect and also handle errors. The class
DB_CONTROL enables your application to control the functioning and status of your database and to request any information about it.
session_control: DB_CONTROL
-- Session control.
...
create session_control.make
session_control.connect
cached: 12/30/2024 4:30:56.000 PM