nofeardb.datatypes.Boolean

class nofeardb.datatypes.Boolean

Bases: OrmDataType

ORM Integer Datatype

classmethod cast(value) Optional[bool]

tries to cast the given value to the expected datatype

classmethod deserialize(value: str) Optional[bool]

deserializes a string to the expected datatype

classmethod serialize(value: Optional[bool]) Optional[str]

serializes the given value to a string based on the datatype