SQLDBC::Environment::createConnection

Prototypes

SQLDBC_Connection *SQLDBC::Environment::createConnection(void);

Description

Construit l'objet représentant une connexion rattachée à l'environnement courant.

Exemple

#include <SQLDBC.h>

static SQLDBC_IRuntime *hRuntime;
static SQLDBC_Connection *hConnexion;

...
SQLDBC::SQLDBC_Environment hEnvironnement=SQLDBC::SQLDBC_Environment::SQLDBC_Environment(hRuntime);
...
hConnexion=hEnvironnement->createConnection();
if (!hConnexion) ...
hEnvironnement->releaseConnection(hConnexion);
...

Voir aussi

SQLDBC::Connection::connect pour se connecter. SQLDBC::Connection::setAutoCommit pour fixer état de validation automatique des transactions. SQLDBC::Connection::setSQLMode pour fixer le niveau de comptabilité Sql. SQLDBC::Environment::releaseConnection pour détruire une connexion.