nofeardb.datatypes.Integer

class nofeardb.datatypes.Integer

Bases: OrmDataType

ORM Integer Datatype

classmethod cast(value) Optional[int]

tries to cast the given value to the expected datatype

classmethod deserialize(value: str) Optional[int]

deserializes a string to the expected datatype

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

serializes the given value to a string based on the datatype