| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [3.11] gh-95132: Correctly relay *args and **kwds from sqlite3.connect to ↵ | Erlend Egeberg Aasland | 2022-07-23 | 1 | -36/+33 |
| | | | | | | | | | | | | | | | | factory (GH-95146) (#95158) This PR partially reverts gh-24421 (PR) and fixes the remaining concerns given in gh-93044 (issue): - keyword arguments are passed as positional arguments to factory() - if an argument is not passed to sqlite3.connect(), its default value is passed to factory() Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>. (cherry picked from commit a3d4d15f53777662ce0957500e5a538ce7161f5e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
| * | [3.11] gh-90016: Reword sqlite3 adapter/converter docs (GH-93095) (#94272) | Erlend Egeberg Aasland | 2022-06-25 | 1 | -6/+6 |
| | | | | | | | | Also add adapters and converter recipes. Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com. (cherry picked from commit bd3c1c187e0e4fde5aec6835d180e9eddde8ceb6) | ||||
| * | [3.11] gh-93044: No longer convert the database argument of ↵ | Serhiy Storchaka | 2022-05-21 | 1 | -3/+2 |
| | | | | | | | | | sqlite3.connect() to bytes (GH-93046) (GH-93048) Just pass it to the factory as is. (cherry picked from commit 14c0d33016a967a98155f2e1615660e9328aef5d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
| * | gh-69093: Expose sqlite3.Blob as a class (GH-91550) | Jelle Zijlstra | 2022-04-15 | 1 | -0/+1 |
| | | | | | I noticed this was missing while writing typeshed stubs. It's useful to expose it for use in annotations and for exploration. | ||||
| * | gh-69093: Support basic incremental I/O to blobs in `sqlite3` (GH-30680) | Erlend Egeberg Aasland | 2022-04-15 | 1 | -1/+5 |
| | | | | | | | | Authored-by: Aviv Palivoda <palaviv@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@innova.no> Co-authored-by: palaviv <palaviv@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
| * | gh-79097: Add support for aggregate window functions in sqlite3 (GH-20903) | Erlend Egeberg Aasland | 2022-04-12 | 1 | -0/+4 |
| | | |||||
| * | bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612) | Erlend Egeberg Aasland | 2022-03-08 | 1 | -10/+13 |
| | | |||||
| * | bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604) | Erlend Egeberg Aasland | 2022-03-03 | 1 | -0/+2 |
| | | |||||
| * | bpo-46541: Remove unneeded visits from sqlite3 (GH-31609) | Erlend Egeberg Aasland | 2022-02-28 | 1 | -7/+0 |
| | | |||||
| * | bpo-46541: Replace _Py_IDENTIFIER with _Py_ID in sqlite3 (GH-31351) | Erlend Egeberg Aasland | 2022-02-16 | 1 | -5/+32 |
| | | |||||
| * | bpo-46541: Replace core use of _Py_IDENTIFIER() with statically initialized ↵ | Eric Snow | 2022-02-08 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | global objects. (gh-30928) We're no longer using _Py_IDENTIFIER() (or _Py_static_string()) in any core CPython code. It is still used in a number of non-builtin stdlib modules. The replacement is: PyUnicodeObject (not pointer) fields under _PyRuntimeState, statically initialized as part of _PyRuntime. A new _Py_GET_GLOBAL_IDENTIFIER() macro facilitates lookup of the fields (along with _Py_GET_GLOBAL_STRING() for non-identifier strings). https://bugs.python.org/issue46541#msg411799 explains the rationale for this change. The core of the change is in: * (new) Include/internal/pycore_global_strings.h - the declarations for the global strings, along with the macros * Include/internal/pycore_runtime_init.h - added the static initializers for the global strings * Include/internal/pycore_global_objects.h - where the struct in pycore_global_strings.h is hooked into _PyRuntimeState * Tools/scripts/generate_global_objects.py - added generation of the global string declarations and static initializers I've also added a --check flag to generate_global_objects.py (along with make check-global-objects) to check for unused global strings. That check is added to the PR CI config. The remainder of this change updates the core code to use _Py_GET_GLOBAL_IDENTIFIER() instead of _Py_IDENTIFIER() and the related _Py*Id functions (likewise for _Py_GET_GLOBAL_STRING() instead of _Py_static_string()). This includes adding a few functions where there wasn't already an alternative to _Py*Id(), replacing the _Py_Identifier * parameter with PyObject *. The following are not changed (yet): * stop using _Py_IDENTIFIER() in the stdlib modules * (maybe) get rid of _Py_IDENTIFIER(), etc. entirely -- this may not be doable as at least one package on PyPI using this (private) API * (maybe) intern the strings during runtime init https://bugs.python.org/issue46541 | ||||
| * | bpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227) | Erlend Egeberg Aasland | 2021-11-03 | 1 | -0/+30 |
| | | | | | | | | | | Use the compile-time selected default SQLite threaded mode to set the DB-API 2.0 attribute 'threadsafety' Mappings: - SQLITE_THREADSAFE=0 => threadsafety=0 - SQLITE_THREADSAFE=1 => threadsafety=3 - SQLITE_THREADSAFE=2 => threadsafety=1 | ||||
| * | bpo-24139: Add support for SQLite extended result codes (GH-28076) | Erlend Egeberg Aasland | 2021-11-02 | 1 | -1/+126 |
| | | |||||
| * | bpo-42064: Adapt `sqlite3` to multi-phase init (PEP 489) (GH-29234) | Erlend Egeberg Aasland | 2021-11-02 | 1 | -20/+99 |
| | | |||||
| * | bpo-45243: Add support for setting/getting `sqlite3` connection limits ↵ | Erlend Egeberg Aasland | 2021-11-01 | 1 | -0/+15 |
| | | | | | (GH-28463) | ||||
| * | bpo-45634: Don't combine error checks when adding `sqlite3` int constants ↵ | Erlend Egeberg Aasland | 2021-10-31 | 1 | -41/+48 |
| | | | | | (GH-29251) | ||||
| * | bpo-42064: Convert `sqlite3` global state to module state (GH-29073) | Erlend Egeberg Aasland | 2021-10-27 | 1 | -14/+7 |
| | | |||||
| * | bpo-16379: expose SQLite error codes and error names in `sqlite3` (GH-27786) | Erlend Egeberg Aasland | 2021-08-30 | 1 | -2/+73 |
| | | |||||
| * | bpo-42064: Optimise `sqlite3` state access, part 1 (GH-27273) | Erlend Egeberg Aasland | 2021-07-29 | 1 | -2/+3 |
| | | | | | | | | | | | Prepare for module state: - Add "get state by defining class" and "get state by module def" stubs - Add AC defining class when needed - Add state pointer to connection context - Pass state as argument to utility functions Automerge-Triggered-By: GH:encukou | ||||
| * | bpo-42064: Finalise establishing sqlite3 global state (GH-27155) | Erlend Egeberg Aasland | 2021-07-20 | 1 | -14/+10 |
| | | | | | | | With this, all sqlite3 static globals have been moved to the global state. There are a couple of global static strings left, but there should be no need for adding them to the state. https://bugs.python.org/issue42064 | ||||
| * | bpo-42064: Move `sqlite3` exceptions to global state, part 2 of 2 (GH-26884) | Erlend Egeberg Aasland | 2021-07-14 | 1 | -36/+19 |
| | | | | Automerge-Triggered-By: GH:encukou | ||||
| * | bpo-42064: Move `sqlite3` exceptions to global state, part 1 of 2 (GH-26745) | Erlend Egeberg Aasland | 2021-06-23 | 1 | -17/+19 |
| | | | | Also adds a test to verify the (borrowed) exceptions in `sqlite3.Connection`. | ||||
| * | bpo-40956: Convert sqlite3.connect and sqlite3.Connection.__init__ to AC ↵ | Erlend Egeberg Aasland | 2021-06-20 | 1 | -42/+40 |
| | | | | | (GH-24421) | ||||
| * | bpo-42064: Move sqlite3 types to global state (GH-26537) | Erlend Egeberg Aasland | 2021-06-15 | 1 | -16/+18 |
| | | | | | | | | | | * Move connection type to global state * Move cursor type to global state * Move prepare protocol type to global state * Move row type to global state * Move statement type to global state * ADD_TYPE takes a pointer * pysqlite_get_state is now static inline | ||||
| * | bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module ↵ | Erlend Egeberg Aasland | 2021-06-03 | 1 | -2/+29 |
| | | | | | | (GH-24203) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> | ||||
| * | bpo-43434: Clean up sqlite3.connect() after GH-25818 (GH-25823) | Erlend Egeberg Aasland | 2021-05-02 | 1 | -8/+1 |
| | | |||||
| * | bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ ↵ | Erlend Egeberg Aasland | 2021-05-02 | 1 | -9/+0 |
| | | | | | (GH-25818) | ||||
| * | bpo-43762: Add audit events for loading of sqlite3 extensions (GH-25246) | Erlend Egeberg Aasland | 2021-04-26 | 1 | -0/+8 |
| | | |||||
| * | bpo-43505: Explicitly initialize and shutdown sqlite3 (GH-25404) | Erlend Egeberg Aasland | 2021-04-14 | 1 | -11/+14 |
| | | |||||
| * | bpo-40810: Require SQLite 3.7.15 (GH-24106) | Erlend Egeberg Aasland | 2021-01-06 | 1 | -4/+4 |
| | | |||||
| * | bpo-1635741: sqlite3 uses Py_NewRef/Py_XNewRef (GH-23170) | Erlend Egeberg Aasland | 2020-12-27 | 1 | -10/+3 |
| | | |||||
| * | bpo-42264: Deprecate sqlite3.OptimizedUnicode (GH-23163) | Erlend Egeberg Aasland | 2020-11-17 | 1 | -9/+0 |
| | | |||||
| * | bpo-1635741: _sqlite3 uses PyModule_AddObjectRef() (GH-23148) | Erlend Egeberg Aasland | 2020-11-04 | 1 | -12/+13 |
| | | |||||
| * | bpo-40956: Convert _sqlite3 module level functions to Argument Clinic (GH-22484) | Erlend Egeberg Aasland | 2020-10-31 | 1 | -70/+91 |
| | | |||||
| * | bpo-42021: Fix possible ref leaks during _sqlite3 module init (GH-22673) | Erlend Egeberg Aasland | 2020-10-15 | 1 | -126/+84 |
| | | |||||
| * | bpo-41861: Convert _sqlite3 CursorType and ConnectionType to heap types ↵ | Erlend Egeberg Aasland | 2020-10-01 | 1 | -5/+5 |
| | | | | | (GH-22478) | ||||
| * | bpo-41861: Convert _sqlite3 RowType and StatementType to heap types (GH-22444) | Erlend Egeberg Aasland | 2020-10-01 | 1 | -3/+3 |
| | | |||||
| * | bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (GH-22428) | Erlend Egeberg Aasland | 2020-09-28 | 1 | -3/+3 |
| | | |||||
| * | bpo-41861: Convert _sqlite3 cache and node static types to heap types (GH-22417) | Erlend Egeberg Aasland | 2020-09-27 | 1 | -1/+1 |
| | | |||||
| * | bpo-40744: Drop support for SQLite pre 3.7.3 (GH-20909) | Erlend Egeberg Aasland | 2020-09-07 | 1 | -18/+7 |
| | | | | | | | Remove code required to support SQLite pre 3.7.3. Co-written-by: Berker Peksag <berker.peksag@gmail.com> Co-written-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> | ||||
| * | bpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323) | Erlend Egeberg Aasland | 2020-05-26 | 1 | -8/+12 |
| | | |||||
| * | bpo-39494: Remove extra null terminators from kwlist vars (GH-18267) | Alex Henrie | 2020-01-30 | 1 | -2/+2 |
| | | |||||
| * | bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) | Jeroen Demeyer | 2019-07-08 | 1 | -1/+1 |
| | | |||||
| * | bpo-37363: Add audit events for a range of modules (GH-14301) | Steve Dower | 2019-06-24 | 1 | -0/+4 |
| | | |||||
| * | bpo-30262: Don't expose private objects in sqlite3 (GH-1440) | Aviv Palivoda | 2019-05-09 | 1 | -4/+0 |
| | | | | | | | The Cache and Statement objects are undocumented and implementation details of the sqlite3 module. They aren't usable from pure Python code. | ||||
| * | bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749) | Serhiy Storchaka | 2018-11-27 | 1 | -3/+3 |
| | | | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code. | ||||
| * | prefix internal sqlite symbols with _pysqlite_ (GH-8215) | Benjamin Peterson | 2018-07-10 | 1 | -7/+7 |
| | | |||||
| * | bpo-27645: Add support for native backup facility of SQLite (GH-4238) | Emanuele Gaifas | 2018-03-10 | 1 | -0/+3 |
| | | |||||
| * | closes bpo-32460: ensure all non-static globals have initializers (#5061) | Benjamin Peterson | 2017-12-31 | 1 | -11/+14 |
| | | |||||
| * | bpo-31843: sqlite3.connect() now accepts PathLike objects as database name ↵ | Anders Lorentsen | 2017-11-07 | 1 | -2/+2 |
| | | | | | (#4299) | ||||
