#NEWLINE# def AddDatabase( self , db_name , char_set = None ) : #NEWLINE# #INDENT# self . _LazyInit ( ) #NEWLINE# if ( db_name in self . _databases ) : #NEWLINE# #INDENT# raise DuplicateNameException ( ( 'Database `%s`' % db_name ) ) #NEWLINE# #UNINDENT# char_set = ( char_set or self . GetCharacterSet ( ) ) #NEWLINE# self . _databases [ db_name ] = Database ( self . _dbh , db_name , char_set ) #NEWLINE# return self . _databases [ db_name ]