mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 01:44:31 +02:00
TransformError() on strict=True if SQLite does not suppor strict
Refs https://github.com/simonw/sqlite-utils/pull/788#issuecomment-4948479356
This commit is contained in:
parent
5b9898ed9b
commit
b73e0e1021
5 changed files with 18 additions and 2 deletions
|
|
@ -2634,6 +2634,8 @@ class Table(Queryable):
|
|||
:param strict: Set to ``True`` to make the table strict or ``False`` to make it
|
||||
non-strict. Defaults to ``None``, which preserves the existing strict mode.
|
||||
"""
|
||||
if strict is True and not self.db.supports_strict:
|
||||
raise TransformError("SQLite does not support STRICT tables")
|
||||
types = types or {}
|
||||
rename = rename or {}
|
||||
drop = drop or set()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue