Here are the examples of the python api sqlalchemy_utils.functions.cast_if taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
Example 1
def get_id(self, from_obj):
return cast_if(get_attrs(from_obj).id, sa.String)