Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
bbef5a4
Add support for sqlite3 aggregate window functions
May 24, 2020
93bfb30
Add NEWS entry
May 24, 2020
7dfeb13
Add What's New
Mar 10, 2021
aaccca2
Merge branch 'main' into fix-issue-34916
Jun 15, 2021
718cc8c
Merge branch 'main' into fix-issue-34916
Jun 20, 2021
fb968ab
Merge branch 'main' into fix-issue-34916
Jul 14, 2021
00fb71c
Move What's New from 3.10 to 3.11
Jul 14, 2021
394c877
Merge branch 'main' into fix-issue-34916
Jul 14, 2021
8779a1b
Merge branch 'main' into fix-issue-34916
Jul 29, 2021
8ad68e2
Add traceback test
Jul 29, 2021
def7cbd
Merge branch 'main' into fix-issue-34916
Jul 30, 2021
60ac350
Improve coverage
Jul 30, 2021
a7eac02
Fix segfault with missing step method
Jul 31, 2021
0ba3ea1
Improve coverage
Jul 31, 2021
7d4f71c
Improve test namespace
Jul 31, 2021
99f0c84
Adjust fixme comment
Jul 31, 2021
f4fea56
Adjust docs
Jul 31, 2021
6f9c8c2
Merge branch 'main' into fix-issue-34916
Aug 8, 2021
44999be
Test unable to set return value in value callback
Aug 8, 2021
25ecc84
Make sure test db is committed
Aug 13, 2021
cd1cd66
Merge branch 'main' into fix-issue-34916
Aug 24, 2021
d73adc9
Convert to use the new callback_context struct
Aug 24, 2021
ff9c559
Merge branch 'main' into fix-issue-34916
Aug 26, 2021
397e05a
Use set_sqlite_error in. step callback
Aug 26, 2021
be2b54f
WIP
Aug 26, 2021
97d26c4
Merge branch 'main' into fix-issue-34916
Aug 30, 2021
388e5a3
Revert "WIP"
Aug 30, 2021
aeb7a9f
Merge branch 'main' into fix-issue-34916
Aug 31, 2021
1a49676
Merge branch 'main' into fix-issue-34916
Sep 8, 2021
6764984
Fix merge
Sep 8, 2021
f1331f2
Raise more accurate error messages for methods that are not defined
Sep 12, 2021
869559d
Merge branch 'main' into fix-issue-34916
Sep 12, 2021
6f5ed2b
Merge branch 'main' into fix-issue-34916
Sep 14, 2021
be8a4b5
Merge branch 'main' into fix-issue-34916
Jan 22, 2022
f173178
Fixup merge
Jan 22, 2022
0a3c0d5
Merge branch 'main' into fix-issue-34916
Mar 3, 2022
f1fe332
Improve docstring wording in example
Mar 3, 2022
1babe16
Use interned string for method lookup
Mar 3, 2022
0f06428
Test adjustments
Mar 3, 2022
61cdd90
Add tests for finalize errors, and missing finalize methods
Mar 3, 2022
6606760
Don't use stdbool
Mar 3, 2022
bbf0bab
Add keyword test
Mar 3, 2022
a4e0eb6
Use static inline iso. macro
Mar 3, 2022
d31f51f
No need to check if SQLITE_DETERMINISTIC is supported
Mar 3, 2022
2bb1ec2
Test that flags are keyword only
Mar 4, 2022
99b752f
Reduce PR: simplify API by excluding flags for now
Mar 4, 2022
81287f2
Remove keywords from docs
Mar 4, 2022
c66c992
Remove useless include
Mar 4, 2022
f442f77
Raise ProgrammingError if unable to create fn
Mar 4, 2022
cfc4d6f
Reword What's New and NEWS
Mar 4, 2022
9355614
Reword docs
Mar 4, 2022
d5b816d
Reword docstring
Mar 4, 2022
22fdb3d
Squeeze error handlers
Mar 4, 2022
217da20
Expand explanatory comment
Mar 4, 2022
6a789ac
Clean up tests
Mar 4, 2022
340cea9
Merge branch 'main' into fix-issue-34916
Apr 10, 2022
431ace8
Address review
Apr 11, 2022
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
Merge branch 'main' into fix-issue-34916
  • Loading branch information
Erlend E. Aasland committed Apr 10, 2022
commit 340cea9617f812865adab0b604e4d4f8c35b7312
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ sqlite3
Instead we leave it to the SQLite library to handle these cases.
(Contributed by Erlend E. Aasland in :issue:`44092`.)

* Add :meth:`~sqlite3.Connection.serialize` and
:meth:`~sqlite3.Connection.deserialize` to :class:`sqlite3.Connection` for
serializing and deserializing databases.
(Contributed by Erlend E. Aasland in :issue:`41930`.)

* Add :meth:`~sqlite3.Connection.create_window_function` to
:class:`sqlite3.Connection` for creating aggregate window functions.
(Contributed by Erlend E. Aasland in :issue:`34916`.)
Expand Down
4 changes: 4 additions & 0 deletions Lib/test/test_sqlite3/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,8 +1081,12 @@ def test_check_connection_thread(self):
lambda: self.con.setlimit(sqlite.SQLITE_LIMIT_LENGTH, -1),
lambda: self.con.getlimit(sqlite.SQLITE_LIMIT_LENGTH),
]
if hasattr(sqlite.Connection, "serialize"):
fns.append(lambda: self.con.serialize())
fns.append(lambda: self.con.deserialize(b""))
if sqlite.sqlite_version_info >= (3, 25, 0):
fns.append(lambda: self.con.create_window_function("foo", 0, None))

for fn in fns:
with self.subTest(fn=fn):
self._run_test(fn)
Expand Down
10 changes: 9 additions & 1 deletion Modules/_sqlite/clinic/connection.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2254,6 +2254,8 @@ static PyMethodDef connection_methods[] = {
PYSQLITE_CONNECTION_SET_TRACE_CALLBACK_METHODDEF
SETLIMIT_METHODDEF
GETLIMIT_METHODDEF
SERIALIZE_METHODDEF
DESERIALIZE_METHODDEF
CREATE_WINDOW_FUNCTION_METHODDEF
{NULL, NULL}
};
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.