Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 1.12 KB

sshelve.rst

File metadata and controls

33 lines (22 loc) · 1.12 KB

sqlite3dbm.sshelve --- Shelve extention for a sqlite3dbm.dbm object

sqlite3dbm.sshelve

module: shelve

This module provides a subclass of shelve.Shelf that works for a sqlite3dbm.dbm object. See the documentation for shelve.Shelf to see the context this module fits into.

Module Contents

open(filename[, flag='c' [, mode=0666[, protocol=None[, writeback=False]]]])

Open a persistent sqlite3-backed dictionary. The filename specificed is the path to the underlying database.

The flag and mode parameters have the same semantics as sqlite3dbm.dbm.open (and, in fact, are directly passed through to this function).

The protocl and writeback parameters behave as outlined in shelve.open.

sqlite3dbm.sshelve.SqliteMapShelf

Module shelve

General object persistence build on top of dbm interfaces.