Poco::Data::MySQL

class Connector

Library: Data
Package: MySQL
Header: Poco/Data/MySQL/Connector.h

Description

Connector instantiates MySQL SessionImpl objects.

Inheritance

Direct Base Classes: Poco::Data::Connector

All Base Classes: Poco::Data::Connector

Member Summary

Member Functions: createSession, registerConnector, unregisterConnector

Inherited Functions: createSession

Constructors

Connector

Connector();

Creates the Connector.

Destructor

~Connector virtual

virtual ~Connector();

Destroys the Connector.

Member Functions

createSession virtual

virtual Poco::AutoPtr < Poco::Data::SessionImpl > createSession(
    const std::string & connectionString
);

Creates a MySQL SessionImpl object and initializes it with the given connectionString.

registerConnector static

static void registerConnector();

Registers the Connector under the Keyword Connector::KEY at the Poco::Data::SessionFactory.

unregisterConnector static

static void unregisterConnector();

Unregisters the Connector under the Keyword Connector::KEY at the Poco::Data::SessionFactory.

Variables

KEY static

static std::string KEY;