Home | History | Annotate | Download | only in afe_sqlite
      1 """
      2 Autotest frontend SQLite based compiler.
      3 """
      4 from django.db.backends.sqlite3.base import DatabaseOperations as SQLiteDatabaseOperations
      5 from django.db.backends.sqlite3.base import DatabaseWrapper as SQLiteDatabaseWrapper
      6 
      7 
      8 class DatabaseOperations(SQLiteDatabaseOperations):
      9     compiler_module = "autotest_lib.frontend.db.backends.afe_sqlite.compiler"
     10 
     11 
     12 class DatabaseWrapper(SQLiteDatabaseWrapper):
     13     def __init__(self, *args, **kwargs):
     14         super(DatabaseWrapper, self).__init__(*args, **kwargs)
     15         self.ops = DatabaseOperations(self.connection)
     16