python / python/cpython

Add structured version info for sqlite3

Open
#157,470 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.16 extension-modules topic-sqlite3 type-feature
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Feature or enhancement

sqlite3.sqlite_version and sqlite3.sqlite_version_info only describe the SQLite library loaded at runtime. There is no way to learn the version of the library that the module was built against, which can differ.

Following gh-117404, add sqlite3.SQLITE_VERSION and sqlite3.SQLITE_VERSION_INFO for the build-time version, and make sqlite3.sqlite_version_info a named tuple.

Linked PRs
  • gh-157471

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading gh-117404 and inspecting the existing sqlite3.sqlite_version and sqlite3.sqlite_version_info entry points. Compare the requested build-time constants and named-tuple shape with the linked work in gh-157471; done means both build-time values are exposed and the runtime version info has the requested structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.