Commits

Vladimir Mihailenco  committed e38a0a7

Add BatchCompiler

  • Participants
  • Parent commits 298842b

Comments (0)

Files changed (2)

File dbindexer/base.py

             base = getattr(
                 import_module(self.compiler_module), compiler_name)
             class Compiler(base, target):
-                pass
+                def __init__(self, *args, **kwargs):
+                    super(Compiler, self).__init__(*args, **kwargs)
             self._cache[compiler_name] = Compiler
         return self._cache[compiler_name]
 

File dbindexer/compiler.py

         for field, value in self.query.values[:]:
             regex_values = []
             index_keys = []
-            
+
             if field is None or model not in FIELD_INDEXES:
                 continue
             if field.column not in FIELD_INDEXES[model]:
 
 class SQLDeleteCompiler(BaseCompiler):
     pass
+
+class SQLBatchCompiler(BaseCompiler):
+    pass