def __init__( self, *args ):
super( DatabaseWrapper, self ).__init__( *args )
self.ops = DatabaseOperations( self )
if( djangoVersion[0:2] <= ( 1, 0 ) ):
self.client = DatabaseClient()
else:
self.client = DatabaseClient( self )
if( djangoVersion[0:2] <= ( 1, 2 ) ):
self.features = DatabaseFeatures()
else:
self.features = DatabaseFeatures( self )
self.creation = DatabaseCreation( self )
if( djangoVersion[0:2] >= ( 1, 8 ) ):
self.data_types=self.creation.data_types
self.data_type_check_constraints=self.creation.data_type_check_constraints
self.introspection = DatabaseIntrospection( self )
if( djangoVersion[0:2] <= ( 1, 1 ) ):
self.validation = DatabaseValidation()
else:
self.validation = DatabaseValidation( self )
self.databaseWrapper = Base.DatabaseWrapper()
# Method to check if connection is live or not.
评论列表
文章目录