Poco::Data::SQLite

class Connector

Library: SQLite
Package: SQLite
Header: Poco/Data/SQLite/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, enableSharedCache, registerConnector, unregisterConnector

Inherited Functions: createSession

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
);

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

enableSharedCache static

static void enableSharedCache(
    bool flag = true
);

Enables or disables SQlite shared cache mode (see http://www.sqlite.org/sharedcache.html for a discussion).

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 SQLite sessions ("SQLite").