Skip to content

Commit

Permalink
Read-only flag added to doc-string
Browse files Browse the repository at this point in the history
  • Loading branch information
tmylk committed Oct 5, 2015
1 parent d6cbbc0 commit 03c6055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlitedict.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ def __init__(self, filename=None, tablename='unnamed', flag='c',
Set `journal_mode` to 'OFF' if you're experiencing sqlite I/O problems
or if you need performance and don't care about crash-consistency.
The `flag` parameter:
The `flag` parameter. Exactly one of:
'c': default mode, open for read/write, creating the db/table if necessary.
'w': open for r/w, but drop `tablename` contents first (start with empty table)
'r': open as read-only
'n': create a new database (erasing any existing tables, not just `tablename`!).
"""
Expand Down

0 comments on commit 03c6055

Please sign in to comment.