<s> from . base import ischema_names <EOL> from ... import types as sqltypes <EOL> __all__ = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> class RangeOperators ( object ) : <EOL> """<STR_LIT>""" <EOL> class comparator_factory ( sqltypes . Concatenable . Comparator ) : <EOL> """<STR_LIT>""" <EOL> def __ne__ ( self , other ) : <EOL> "<STR_LIT>" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> def contains ( self , other , ** kw ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> def contained_by ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> def overlaps ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> def strictly_left_of ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> __lshift__ = strictly_left_of <EOL> def strictly_right_of ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> __rshift__ = strictly_right_of <EOL> def not_extend_right_of ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> def not_extend_left_of ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> def adjacent_to ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT>' ) ( other ) <EOL> def __add__ ( self , other ) : <EOL> """<STR_LIT>""" <EOL> return self . expr . op ( '<STR_LIT:+>' ) ( other ) <EOL> class INT4RANGE ( RangeOperators , sqltypes . TypeEngine ) : <EOL> """<STR_LIT>""" <EOL> __visit_name__ = '<STR_LIT>' <EOL> ischema_names [ '<STR_LIT>' ] = INT4RANGE <EOL> class INT8RANGE ( RangeOperators , sqltypes . TypeEngine ) : <EOL> """<STR_LIT>""" <EOL> __visit_name__ = '<STR_LIT>' <EOL> ischema_names [ '<STR_LIT>' ] = INT8RANGE <EOL> class NUMRANGE ( RangeOperators , sqltypes . TypeEngine ) : <EOL> """<STR_LIT>""" <EOL> __visit_name__ = '<STR_LIT>' <EOL> ischema_names [ '<STR_LIT>' ] = NUMRANGE <EOL> class DATERANGE ( RangeOperators , sqltypes . TypeEngine ) : <EOL> """<STR_LIT>""" <EOL> __visit_name__ = '<STR_LIT>' <EOL> ischema_names [ '<STR_LIT>' ] = DATERANGE <EOL> class TSRANGE ( RangeOperators , sqltypes . TypeEngine ) : <EOL> """<STR_LIT>""" <EOL> __visit_name__ = '<STR_LIT>' <EOL> ischema_names [ '<STR_LIT>' ] = TSRANGE <EOL> class TSTZRANGE ( RangeOperators , sqltypes . TypeEngine ) : <EOL> """<STR_LIT>""" <EOL> __visit_name__ = '<STR_LIT>' <EOL> ischema_names [ '<STR_LIT>' ] = TSTZRANGE </s>
