From d4612c9619225cbadd876b917132c347283117b6 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 18 Jun 2025 09:09:21 +0100 Subject: [PATCH 1/3] Document SQLITE_KEYWORDS constant --- Doc/library/sqlite3.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 12761baf792a6b..1c22313ef1269f 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -507,6 +507,15 @@ Module constants Version number of the runtime SQLite library as a :class:`tuple` of :class:`integers `. +.. data:: SQLITE_KEYWORDS + + A :class:`tuple` containing all sqlite3 keywords. + + The availability of this constant varies depending on the version of SQLite + Python was compiled with. + + .. versionadded:: next + .. data:: threadsafety Integer constant required by the DB-API 2.0, stating the level of thread From 73b6dc19abffcd5cc196de88d935fc8c5b2e5fb3 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 18 Jun 2025 09:11:20 +0100 Subject: [PATCH 2/3] Update blurb to go with it --- .../Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst b/Misc/NEWS.d/next/Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst index 38d5c311b1d437..943e4addebcc9e 100644 --- a/Misc/NEWS.d/next/Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst +++ b/Misc/NEWS.d/next/Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst @@ -1 +1,2 @@ -Support keyword completion in the :mod:`sqlite3` command-line interface. +Support keyword completion in the :mod:`sqlite3` command-line interface and add +:data:`sqlite3.SQLITE_KEYWORDS` constant. From 672243dfe3c3a23765bf49f75d7fb085c80a0e32 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Wed, 18 Jun 2025 11:39:28 +0100 Subject: [PATCH 3/3] Petr's suggestion to make it more specific --- Doc/library/sqlite3.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 1c22313ef1269f..641e1f1de03a1d 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -511,8 +511,8 @@ Module constants A :class:`tuple` containing all sqlite3 keywords. - The availability of this constant varies depending on the version of SQLite - Python was compiled with. + This constant is only available if Python was compiled with SQLite + 3.24.0 or greater. .. versionadded:: next