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