Exemple #1
0
 def __init__(self, *args, **kwargs):
     super(DatabaseWrapper, self).__init__(*args, **kwargs)
     self.creation = MySQLCreation(self)
     try:
         self.ops = DatabaseOperations()
     except TypeError:
         self.ops = DatabaseOperations(connection=kwargs.get('connection'))
     self.introspection = MySQLIntrospection(self)
Exemple #2
0
 def __init__(self, *args, **kwargs):
     super(DatabaseWrapper, self).__init__(*args, **kwargs)
     self.creation = MySQLCreation(self)
     self.ops = DatabaseOperations()
     self.introspection = MySQLIntrospection(self)