relstorage.adapters.sqlite.drivers#

class Sqlite3Driver[source]#

Bases: MemoryViewBlobDriverMixin, AbstractModuleDriver

CONNECTION_FACTORY#

alias of Connection

connect_to_file(fname, query_only=False, max_wal_size=10485760, mmap_size=None, page_size=4096, cache_size=None, temp_store=None, timeout=15, quick_check=True, isolation_level=None, extra_pragmas=None, override_pragmas=None)[source]#

Return a DB-API Connection object.

Caution

Using the connection as a context manager does not result in the connection being closed, only committed or rolled back.

MODULE_NAME = 'sqlite3'#

The name of the DB-API module to import.

STATIC_AVAILABLE = True#

Set this to a false value if your subclass can do static checks at import time to determine it should not be used. Helpful for things like Python version detection.

class Sqlite3GeventDriver[source]#

Bases: _NoGeventDriverMixin, Sqlite3Driver

CONNECTION_FACTORY#

alias of GeventConnection

configure_from_options(options)[source]#

Default implementation; does nothing.

enter_critical_phase_until_transaction_end(connection, cursor)[source]#

Default implementation; does nothing.

exit_critical_phase(connection, cursor)[source]#

Default implementation; does nothing.

is_in_critical_phase(connection, cursor)[source]#

Default implementation; returns a false value.