Skip to content

Commit

Permalink
docs: minor tweaks to db docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Sep 29, 2022
1 parent d296083 commit a59fc44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions coverage/numbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def register_sqlite_functions(connection):
conn = sqlite3.connect('example.db')
register_sqlite_functions(conn)
c = conn.cursor()
# Kind of a nonsense query: find all the files and contexts that
# executed line 47 in any file:
# Kind of a nonsense query:
# Find all the files and contexts that executed line 47 in any file:
c.execute(
"select file_id, context_id from line_bits where num_in_numbits(?, numbits)",
(47,)
Expand Down
5 changes: 3 additions & 2 deletions doc/dbschema.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ be preferred to accessing the database directly. Only advanced uses will need
to use the database.

The schema can change without changing the major version of coverage.py, so be
careful when accessing the database directly. The `coverage_schema` table has
the schema number of the database. The schema described here corresponds to:
careful when accessing the database directly. The ``coverage_schema`` table
has the schema number of the database. The schema described here corresponds
to:

.. [[[cog
from coverage.sqldata import SCHEMA_VERSION
Expand Down

0 comments on commit a59fc44

Please sign in to comment.