Detect types for sqlite-utils memory CSV, opt out with --no-detect-types - closes #282

This commit is contained in:
Simon Willison 2021-06-18 21:37:56 -07:00
commit ec5174ed40
4 changed files with 50 additions and 15 deletions

View file

@ -147,6 +147,7 @@ def rows_from_file(
format=None,
dialect=None,
encoding=None,
detect_types=False,
) -> Generator[dict, None, None]:
if format == Format.JSON:
decoded = json.load(fp)