Library: Data
Package: MySQL
Header: Poco/Data/MySQL/SessionHandle.h
MySQL session handle
Member Functions: close, commit, connect, init, operator MYSQL *, options, rollback, startTransaction
explicit SessionHandle(
MYSQL * mysql
);
Creates session handle
~SessionHandle();
Destroy handle, close connection
void close();
Close connection
void commit();
Commit transaction
void connect(
const char * host,
const char * user,
const char * password,
const char * db,
unsigned int port
);
Connect to server
void init(
MYSQL * mysql = 0
);
Initializes the handle if and only if not initialized.
operator MYSQL * ();
void options(
mysql_option opt
);
Set connection options
void options(
mysql_option opt,
bool b
);
Set connection options
void options(
mysql_option opt,
const char * c
);
Set connection options
void options(
mysql_option opt,
unsigned int i
);
Set connection options
void rollback();
Rollback transaction
void startTransaction();
Start transaction