def out_blob(self, text): return typeconv_tu.unicode_conv_out((text, self.db_charset_code))
def conv_out_blob(self, text): return typeconv_textunicode.unicode_conv_out((text, self.FB_CHARSET_CODE))
return smart_str(text, encoding=self.charset) def in_unicode(self, (text, charset)): if text is not None: return typeconv_tu.unicode_conv_in((smart_unicode(text), self.db_charset_code)) def in_blob(self, text): return typeconv_tu.unicode_conv_in((smart_unicode(text), self.db_charset_code)) def out_text(self, text): if text is not None: return smart_unicode(text, encoding=self.charset) return text def out_unicode(self, (text, charset)): return typeconv_tu.unicode_conv_out((text, self.db_charset_code)) def out_blob(self, text): return typeconv_tu.unicode_conv_out((text, self.db_charset_code)) class DatabaseWrapper(BaseDatabaseWrapper): operators = { "exact": "= %s", "iexact": "= UPPER(%s)", "contains": "LIKE %s ESCAPE'\\'", "icontains": "CONTAINING %s", # case is ignored "gt": "> %s", "gte": ">= %s", "lt": "< %s",