diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-09-29 06:25:18 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-09-29 06:25:18 -0400 |
commit | a59fc4485df1191a8efaeae92e780e9f0710484e (patch) | |
tree | 72bc64ceb9a1492e10f5d40534ee5864c70103c4 | |
parent | d296083bbed850a5f13459a163633fc6fb9289ea (diff) | |
download | python-coveragepy-git-a59fc4485df1191a8efaeae92e780e9f0710484e.tar.gz |
docs: minor tweaks to db docs
-rw-r--r-- | coverage/numbits.py | 4 | ||||
-rw-r--r-- | doc/dbschema.rst | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/coverage/numbits.py b/coverage/numbits.py index 9c49d55d..297795d9 100644 --- a/coverage/numbits.py +++ b/coverage/numbits.py @@ -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,) diff --git a/doc/dbschema.rst b/doc/dbschema.rst index c93a0646..34e0a55d 100644 --- a/doc/dbschema.rst +++ b/doc/dbschema.rst @@ -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 |