def serializable_keys(self): """ :return: set of keys available for serialization """ return {a.key for a in sql_inspect(self).mapper.attrs}
def get_relationships(sqla_model: TableProtocol) -> List[RelationshipProperty]: """Relationships with other tables""" return list(sql_inspect(sqla_model).relationships)