sqlite-utils/sqlite_utils
Charlie Tonneslan 0c5e9eb104
Skip type detection when CSV insert created no table
Closes #702.

A CSV that's only a header row leaves insert_all with no rows, so no
table gets created. The follow-up transform(types=tracker.types) hit
the 'Cannot transform a table that doesn't exist yet' assertion. Guard
both insert paths on the table actually existing.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
2026-05-18 10:08:37 -04:00
..
__init__.py prepare_connection plugin hook 2023-07-22 15:59:08 -07:00
__main__.py Support 'python -m sqlite_utils', closes #368 2022-01-08 18:33:22 -08:00
cli.py Skip type detection when CSV insert created no table 2026-05-18 10:08:37 -04:00
db.py Test against Python 3.15-dev, bump ty and Black (#738) 2026-05-17 16:52:48 -07:00
hookspecs.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
plugins.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
py.typed py.typed file so mypy picks up the types, closes #331 2021-11-14 15:21:04 -08:00
recipes.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
utils.py Test against Python 3.15-dev, bump ty and Black (#738) 2026-05-17 16:52:48 -07:00