summaryrefslogtreecommitdiff
path: root/coverage/sqldata.py
Commit message (Collapse)AuthorAgeFilesLines
...
* fix: correct previous refactoringsNed Batchelder2021-07-281-1/+1
| | | | | File names should not be rendered with !r, since on Windows that will produce double backslashes, which only confuses people.
* refactor: convert %-strings to f-stringsNed Batchelder2021-07-281-1/+1
|
* fix: retry immediately on a failure inside executemany. #1010Ned Batchelder2021-07-211-1/+7
|
* fix: raise chained errors with "from" #998Ned Batchelder2021-07-201-2/+2
| | | | | | This makes exceptions report their causes correctly, as "The above exception was the direct cause of the following exception" instead of "During handling of the above exception, another exception occurred."
* docs: add a word to clarify an APINed Batchelder2021-05-081-1/+1
|
* fix: shorten the sqlite debug info listingNed Batchelder2021-05-041-2/+5
| | | | | | This is totally cosmetic. I often look at "coverage debug sys", and the long list of SQLite info at the end is never the thing I want to look at. So squish it up to take less space.
* fix: make data collection operations thread-safeNed Batchelder2021-05-031-0/+20
|
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+2
|
* refactor: pyupgrade --py36-plus coverage/*.pyNed Batchelder2021-05-021-21/+21
|
* refactor: remove more unneeded backward.py shimsNed Batchelder2021-05-011-6/+5
| | | | | | | | | | | | | | Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS
* refactor: remove unneeded backward.py shimsNed Batchelder2021-05-011-8/+9
| | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-16/+1
|
* docs: clarify that loads/dumps are not related to data filesNed Batchelder2021-04-191-1/+8
|
* fix: improve an error message. #803Ned Batchelder2021-02-281-2/+2
| | | | Fixes #803.
* Use set literalsNed Batchelder2021-01-031-2/+2
|
* Retry in the case of failures. #1010Ned Batchelder2020-12-051-1/+7
| | | | | PyPy seems prone to intermittent SQLite failures. An immediate retry avoids them. Not great, but it works.
* Fix --source performance regression. #1037Ned Batchelder2020-10-111-9/+20
|
* Add temp_store to the SQLite3 debug outputNed Batchelder2020-01-131-0/+2
|
* Correct the use of fetchoneNed Batchelder2020-01-131-3/+20
|
* Include SQLite compile_options in "debug sys"Ned Batchelder2020-01-111-0/+4
|
* Improvements to debugging while chasing #915Ned Batchelder2020-01-111-4/+11
|
* Put the filename calc back in _connect. Fixes #916Ned Batchelder2020-01-071-12/+16
| | | | | | It was moved to __init__ to avoid recalculating, but the directory could have changed, so we need to wait to do the work. Instead, only do the relpath on systems that need it (Windows Py 2).
* Improve the performances of SqliteDb._connectjvoisin2020-01-041-8/+9
| | | | | | | | | Since the self.filename attribute doesn't change during the lifetime of a SqliteDb object, we can move its relpath transformation in the init method, instead of doing it every time _connect is called, resulting in a ~30% performances gain.
* Detect when a 4.x data file is being read. #886Ned Batchelder2019-12-221-1/+14
|
* Workaround issue with relpath on Windows. #895Olivier Grisel2019-12-191-1/+8
|
* Napoleon gets noisy if you use informal typesNed Batchelder2019-11-111-6/+6
|
* Finish the sqldata.py docstringsNed Batchelder2019-11-101-11/+44
|
* Make sure dataio logging is happening where it shouldNed Batchelder2019-11-091-0/+2
|
* CoverageData.lines doesn't sort its returned listNed Batchelder2019-11-091-1/+1
|
* sqldata.py docstringsNed Batchelder2019-11-091-31/+118
|
* '[run] note' is no longer supported.Ned Batchelder2019-11-091-8/+2
|
* Tie up a loose end in the docsNed Batchelder2019-10-081-1/+0
|
* Sqlite3 info in 'coverage debug sys'Ned Batchelder2019-10-081-1/+11
|
* Slowly making progress on sqldata docstringsNed Batchelder2019-10-061-0/+7
|
* Quiet pylintNed Batchelder2019-10-061-3/+5
|
* Context patterns are regexes, not globsNed Batchelder2019-10-021-5/+27
|
* Setting query context has to be done with a separate method callNed Batchelder2019-10-021-34/+24
|
* Updating with an empty data is okNed Batchelder2019-09-031-16/+24
| | | | | With no arc or line data, it used to choose lines arbitrarily, which would fail if an empty data was updating an arc data.
* Need to set a sqlite attribute on a real sqlite connectionNed Batchelder2019-09-031-1/+1
|
* Log some indication of the script being executedNed Batchelder2019-09-021-3/+5
|
* Logging executemany failed if data was a generatorNed Batchelder2019-09-021-0/+1
|
* Log an operation before starting itNed Batchelder2019-09-011-1/+1
|
* Improved numbits operationsNed Batchelder2019-08-111-45/+30
| | | | | | | | | * Better names (merge -> union) * More ops (intersection) * Can be registered for SQLite use * Numbits can be empty Also, line_map is a dumb table name. line_bits is marginally better.
* Don't need the schema history in the schemaNed Batchelder2019-08-061-8/+9
|
* Version and timestamp in the meta dataNed Batchelder2019-08-061-2/+10
|
* Meta data stored as key/valueNed Batchelder2019-08-061-14/+22
|
* Foreign keysNed Batchelder2019-08-061-2/+8
|
* A little more discipline for blob convertersNed Batchelder2019-07-311-5/+12
|
* numbits is the new name for the binary line numbersNed Batchelder2019-07-311-18/+27
|
* Refactor numbits into their own filesNed Batchelder2019-07-311-33/+7
|