Beispiel #1
0
 def _in(self, operator, right):
     from vulkn.types.integer import UInt8
     from vulkn.datatable import VulknDataTable
     in_arg = None
     if hasattr(right, 'show_sql'):
         in_arg = right.show_sql()[0:-1]
     elif isinstance(right, list):
         if isinstance(right[0], str):
             in_arg = "'{}'".format("','".join(map(str, right)))
         else:
             in_arg = ','.join(map(str, right))
     else:
         in_arg = str(right)
     return UInt8(Literal('{} {} ({})'.format(self._value, operator, in_arg)))
Beispiel #2
0
 def JSONExtractBool(self, *indices_or_keys):
     return UInt8(func('JSONExtractBool', self._value, *indices_or_keys))
Beispiel #3
0
 def JSONHas(self, *indices_or_keys):
     return UInt8(func('JSONHas', self._value, *indices_or_keys))
Beispiel #4
0
 def visitParamExtractBool(self, name):
     return UInt8(func('visitParamExtractBool', self._value, name))
Beispiel #5
0
 def visitParamHas(self, name):
     return UInt8(func('visitParamHas', self._value, name))
Beispiel #6
0
 def like(self, pattern: str):
     return UInt8(func('like', self._value, pattern))
Beispiel #7
0
 def __xor__(self, right) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('xor', self._value, right))
Beispiel #8
0
 def __invert__(self) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('bitNot', self._value))
Beispiel #9
0
 def not_(self) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('not', self._value))
Beispiel #10
0
 def __and__(self, right) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('bitAnd', self._value, right))
Beispiel #11
0
 def __le__(self, right) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('lessOrEquals', self._value, right))
Beispiel #12
0
 def notBetween(self, start, end):
     from vulkn.types.integer import UInt8
     return UInt8(Literal('{} NOT BETWEEN {} AND {}'.format(self._value, start, end)))
Beispiel #13
0
 def isNotNull(self):
     from vulkn.types.integer import UInt8
     return UInt8(func('isNotNull', self._value))