8000 gh-100414: Add SQLite backend to dbm by erlend-aasland · Pull Request #114481 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-100414: Add SQLite backend to dbm #114481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 48 commits into from
Feb 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
8c19c81
gh-100414: Add SQLite backend to dbm
erlend-aasland Jan 22, 2024
7f32772
Preliminary docs
erlend-aasland Jan 23, 2024
3f8a119
Decode path a little bit earlier
erlend-aasland Jan 23, 2024
4f82c88
Merge branch 'main' into sqlite/dbm
erlend-aasland Jan 23, 2024
38a9b41
Substitutions are already in place
erlend-aasland Jan 23, 2024
db0f148
Use CSV-style table, as the rest of the .rst file does
erlend-aasland Jan 23, 2024
e50d1e9
dbm.sqlite3.error is a subclass of OSError
erlend-aasland Jan 23, 2024
0abd7dc
Don't raise DB API exceptions; test this
erlend-aasland Jan 23, 2024
98fba0f
Pull in main
erlend-aasland Jan 23, 2024
2b97160
Don't panic on double close(); add more tests
erlend-aasland Jan 23, 2024
917bfba
Corruption tests: check all basic operations for flags 'r', 'w', 'c'
erlend-aasland Jan 23, 2024
874fb81
Add read-only specific test
erlend-aasland Jan 23, 2024
b655473
Address review: always import sqlite3; let ImportError deal with miss…
erlend-aasland Jan 24, 2024
95eba93
Test whichdb
erlend-aasland Jan 24, 2024
54751ba
test namespacing
erlend-aasland Jan 24, 2024
906748e
Test that 'c' works even if you already have a database; make sure BU…
erlend-aasland Jan 24, 2024
7320f18
Pull in main
erlend-aasland Jan 24, 2024
c89c5fb
Remove unneeded comma
erlend-aasland Jan 24, 2024
34d8c7f
Close cursors explicitly for each query
erlend-aasland Jan 24, 2024
608c229
Address review from Donghee, Serhiy, and myself:
erlend-aasland Jan 24, 2024
3d53054
Pull in main
erlend-aasland Jan 24, 2024
75f7c6a
Add URI tests, fix whitespace, catch errors during db creation
erlend-aasland Jan 24, 2024
3ac010c
Enable test on Windows
erlend-aasland Jan 24, 2024
08c3848
Use as_uri() instead
erlend-aasland Jan 24, 2024
775ff91
Skip tests with relative paths for now
erlend-aasland Jan 25, 2024
4ba9607
Add prelim docstring for dbm.sqlite3.open
erlend-aasland Jan 25, 2024
dc0ba26
Amend Windows URI expected results
erlend-aasland Jan 25, 2024
37f99ab
For now, just remove the relative URI tests on Windows
erlend-aasland Jan 25, 2024
177b200
Document dbm.sqlite3.open signature
erlend-aasland Jan 25, 2024
1a661a5
Update Lib/test/test_dbm.py
erlend-aasland Jan 25, 2024
fae8603
Update Lib/test/test_dbm.py
erlend-aasland Jan 25, 2024
d5fc39c
Only test URI substitution and normalisation; discard prefix
erlend-aasland Jan 25, 2024
d350ce2
Pull in changes from PR
erlend-aasland Jan 25, 2024
a8db17f
Doc amendments
erlend-aasland Jan 25, 2024
1f87517
Pull in main
erlend-aasland Jan 26, 2024
898dd71
Pull in main
erlend-aasland Jan 26, 2024
bb49fab
Mark up flags as list; it renders better
erlend-aasland Jan 26, 2024
26a2c69
Apply suggestions from code review
erlend-aasland Jan 26, 2024
ae53f95
Address review: use closing() in _execute() wrapper
erlend-aasland Jan 26, 2024
926ef1a
Update Doc/library/dbm.rst
erlend-aasland Jan 26, 2024
c0878d9
Add support for 'mode' param in dbm.sqlite3.open()
erlend-aasland Jan 30, 2024
b7111ee
Pull in main
erlend-aasland Jan 30, 2024
48972a6
Pull in main
erlend-aasland Jan 31, 2024
d6d7c66
Fix test_misuse_reinit()
erlend-aasland Jan 31, 2024
bc849c3
Merge branch 'main' into sqlite/dbm
erlend-aasland Feb 14, 2024
e782fad
Address Serhiy's offline remark: coerce keys/values to bytes
erlend-aasland Feb 14, 2024
b1b9a9b
Align docs to e782fad38f
erlend-aasland Feb 14, 2024
34930cb
Compat with other backends: silently coerce keys to bytes
erlend-aasland Feb 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/library/dbm.rst
  • Loading branch information
erlend-aasland authored Jan 26, 2024
commit 926ef1a9086c2baaaa306c19194e24a593c5cb2c
1 change: 1 addition & 0 deletions Doc/library/dbm.rst
7B95
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ or any other SQLite browser, including the SQLite CLI.
:type filename: :term:`path-like object`

:param str flag:

* ``'r'`` (default), |flag_r|
* ``'w'``, |flag_w|
* ``'c'``, |flag_c|
Expand Down
0