Dict-style DBM based on sqlite3.
Project description
Dict-style DBM based on sqlite3.
>>> import sqlite_dbm >>> db = sqlite_dbm.open('./test.sqlite') >>> db['foo'] = 'bar' >>> db['foo'] 'bar' >>> del db['foo'] >>> len(db) 0 >>> db.close()
Fast insert:
>>> db = sqlite_dbm.open('./test.sqlite', auto_commit=False) >>> for i in xrange(1000): ... db[str(i)] = 'foo' >>> db.commit() >>> len(db) 1000 >>> db.clear() >>> db.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlite_dbm-1.1.0.tar.gz
(2.0 kB
view hashes)