File: autocommit.py

package info (click to toggle)
sqlitedict 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 200 kB
  • sloc: python: 825; makefile: 31; sh: 7
file content (6 lines) | stat: -rw-r--r-- 128 bytes parent folder | download
1
2
3
4
5
6
import sqlitedict

d = sqlitedict.SqliteDict('tests/db/autocommit.sqlite', autocommit=True)

for i in range(1000):
    d[i] = i