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