<s> import os <EOL> import sys <EOL> from djangojy . db . backends . creation import BaseDatabaseCreation <EOL> class DatabaseCreation ( BaseDatabaseCreation ) : <EOL> data_types = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:bool>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:date>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:bool>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:text>' , <EOL> '<STR_LIT>' : '<STR_LIT:time>' , <EOL> } <EOL> def sql_for_pending_references ( self , model , style , pending_references ) : <EOL> "<STR_LIT>" <EOL> return [ ] <EOL> def sql_remove_table_constraints ( self , model , references_to_delete , style ) : <EOL> "<STR_LIT>" <EOL> return [ ] <EOL> def _get_test_db_name ( self ) : <EOL> test_database_name = self . connection . settings_dict [ '<STR_LIT>' ] <EOL> if test_database_name and test_database_name != '<STR_LIT>' : <EOL> return test_database_name <EOL> return '<STR_LIT>' <EOL> def _create_test_db ( self , verbosity , autoclobber ) : <EOL> test_database_name = self . _get_test_db_name ( ) <EOL> if test_database_name != '<STR_LIT>' : <EOL> if verbosity >= <NUM_LIT:1> : <EOL> print "<STR_LIT>" % self . connection . alias <EOL> if os . access ( test_database_name , os . F_OK ) : <EOL> if not autoclobber : <EOL> confirm = raw_input ( "<STR_LIT>" % test_database_name ) <EOL> if autoclobber or confirm == '<STR_LIT:yes>' : <EOL> try : <EOL> os . remove ( test_database_name ) <EOL> except Exception , e : <EOL> sys . stderr . write ( "<STR_LIT>" % e ) <EOL> sys . exit ( <NUM_LIT:2> ) <EOL> else : <EOL> print "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> return test_database_name <EOL> def _destroy_test_db ( self , test_database_name , verbosity ) : <EOL> if test_database_name and test_database_name != "<STR_LIT>" : <EOL> os . remove ( test_database_name ) <EOL> def set_autocommit ( self ) : <EOL> self . connection . connection . isolation_level = None <EOL> def test_db_signature ( self ) : <EOL> """<STR_LIT>""" <EOL> settings_dict = self . connection . settings_dict <EOL> test_dbname = self . _get_test_db_name ( ) <EOL> sig = [ self . connection . settings_dict [ '<STR_LIT>' ] ] <EOL> if test_dbname == '<STR_LIT>' : <EOL> sig . append ( self . connection . alias ) <EOL> return tuple ( sig ) </s>
