예제 #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)
예제 #2
0
파일: base.py 프로젝트: sconklin/autotest
 def __init__(self, *args, **kwargs):
     super(DatabaseWrapper, self).__init__(*args, **kwargs)
     self.creation = MySQLCreation(self)
     self.ops = DatabaseOperations()
     self.introspection = MySQLIntrospection(self)