Exemple #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)))
Exemple #2
0
 def JSONExtractBool(self, *indices_or_keys):
     return UInt8(func('JSONExtractBool', self._value, *indices_or_keys))
Exemple #3
0
 def JSONHas(self, *indices_or_keys):
     return UInt8(func('JSONHas', self._value, *indices_or_keys))
Exemple #4
0
 def visitParamExtractBool(self, name):
     return UInt8(func('visitParamExtractBool', self._value, name))
Exemple #5
0
 def visitParamHas(self, name):
     return UInt8(func('visitParamHas', self._value, name))
Exemple #6
0
 def like(self, pattern: str):
     return UInt8(func('like', self._value, pattern))
Exemple #7
0
 def __xor__(self, right) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('xor', self._value, right))
Exemple #8
0
 def __invert__(self) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('bitNot', self._value))
Exemple #9
0
 def not_(self) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('not', self._value))
Exemple #10
0
 def __and__(self, right) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('bitAnd', self._value, right))
Exemple #11
0
 def __le__(self, right) -> any:
     from vulkn.types.integer import UInt8
     return UInt8(func('lessOrEquals', self._value, right))
Exemple #12
0
 def notBetween(self, start, end):
     from vulkn.types.integer import UInt8
     return UInt8(Literal('{} NOT BETWEEN {} AND {}'.format(self._value, start, end)))
Exemple #13
0
 def isNotNull(self):
     from vulkn.types.integer import UInt8
     return UInt8(func('isNotNull', self._value))