Feature/Enhancement Request: boolean data type #22
Labels
enhancement
New feature or request
planned
Issue is tagged for planned resolution in a future release
Milestone
Feature or Enhancement?
Description
bool
column type annotations for subclasses ofSqlModel
should be acceptable. E.g.This entails the following:
bool
.--columns "is_something=bool,is_something_else=bool|None"
and generate model class source with the correct type annotation.SqlModel
andHashedModel
Additional context
Related to #8.
In sqlite3,
true
andfalse
are understood when querying, but they are stored as1
and0
, respectively, in the table. See https://www.sqlite.org/datatype3.html.The text was updated successfully, but these errors were encountered: