original_docstring: 
          Detach an attached database from your current database, Arguments passed should be the alias name for the database that you used to attach it earlier.
          
docstring: Detach an attached database from your current database, Arguments passed should be the alias name for the database that you used to attach it earlier.
docstring_tokens: Detach an attached database from your current database Arguments passed should be the alias name for the database that you used to attach it earlier .
code: def detach_database(self,aliasName : str):
          """
          Detach an attached database from your current database, Arguments passed should be the alias name for the database that you used to attach it earlier.
          """
          try:
              dataBase = connect(
                  host = self.host,
                  user = self.userName,
                  passwd = self.passwrd,
                  database = self.database
              )
              cursor = dataBase.cursor()
  
              cursor.execute("DETACH DATABASE " + aliasName)
  
              dataBase.close()
              return 'Detached!'
          except Exception as error:
              raise MySQLerrorTypes.database_detach_error(error)
code_tokens: def detach_database ( self , aliasName : str ) : try : dataBase = connect ( host = self . host , user = self . userName , passwd = self . passwrd , database = self . database ) cursor = dataBase . cursor ( ) cursor . execute ( "DETACH DATABASE " + aliasName ) dataBase . close ( ) return 'Detached!' except Exception as error : raise MySQLerrorTypes . database_detach_error ( error )
short_docstring: Detach an attached database from your current database, Arguments passed should be the alias name for the database that you used to attach it earlier.
short_docstring_tokens: Detach an attached database from your current database Arguments passed should be the alias name for the database that you used to attach it earlier .
comment: """
          Detach an attached database from your current database, Arguments passed should be the alias name for the database that you used to attach it earlier.
          """