コード例 #1
0
ファイル: datatypes.py プロジェクト: tonich-sh/sqlbuilder
 def concat_ws(self, sep, *args):
     return Concat(self._expr, *args).ws(sep)
コード例 #2
0
ファイル: datatypes.py プロジェクト: tonich-sh/sqlbuilder
 def concat(self, *args):
     return Concat(self._expr, *args)
コード例 #3
0
ファイル: datatypes.py プロジェクト: tonich-sh/sqlbuilder
 def riendswith(self, other):
     pattern = EscapeForLike(self._expr)
     return ILike(other, Concat(Value('%'), pattern), escape=pattern.escape)
コード例 #4
0
ファイル: datatypes.py プロジェクト: tonich-sh/sqlbuilder
 def ricontains(self, other):
     pattern = EscapeForLike(self._expr)
     return ILike(other, Concat(Value('%'), pattern, Value('%')), escape=pattern.escape)
コード例 #5
0
ファイル: datatypes.py プロジェクト: tonich-sh/sqlbuilder
 def ristartswith(self, other):
     pattern = EscapeForLike(self._expr)
     return ILike(other, Concat(pattern, Value('%')), escape=pattern.escape)
コード例 #6
0
ファイル: datatypes.py プロジェクト: tonich-sh/sqlbuilder
 def contains(self, other):  # TODO: ambiguous with "@>" operator of postgresql.
     pattern = EscapeForLike(other)
     return Like(self._expr, Concat(Value('%'), pattern, Value('%')), escape=pattern.escape)