Poco::Data::ODBC

class Connector

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

Description

Connector instantiates SqLite SessionImpl objects.

Inheritance

Direct Base Classes: Poco::Data::Connector

All Base Classes: Poco::Data::Connector

Member Summary

Member Functions: createSession, name, registerConnector, unregisterConnector

Inherited Functions: createSession, name

Constructors

Connector

Connector();

Creates the Connector.

Destructor

~Connector virtual

~Connector();

Destroys the Connector.

Member Functions

createSession

Poco::AutoPtr < Poco::Data::SessionImpl > createSession(
    const std::string & connectionString,
    std::size_t timeout = Poco::Data::SessionImpl::LOGIN_TIMEOUT_DEFAULT
);

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

name virtual inline

const std::string & name() const;

Returns the name associated with this connector.

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 const std::string KEY;

Keyword for creating ODBC sessions