#NEWLINE# def _create_keyspace( name , durable_writes , strategy_class , strategy_options ) : #NEWLINE# #INDENT# if ( not _allow_schema_modification ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# cluster = get_cluster ( ) #NEWLINE# if ( name not in cluster . metadata . keyspaces ) : #NEWLINE# #INDENT# log . info ( 'Creating keyspace %s ' , name ) #NEWLINE# ks_meta = metadata . KeyspaceMetadata ( durable_writes , durable_writes , strategy_class , strategy_options ) #NEWLINE# execute ( ks_meta . as_cql_query ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . info ( 'Not creating keyspace %s because it already exists' , name )