original_docstring: 
          Attach a database, to your current Database. If your database is in the same directory as your root file then you can just write the .DB file name, otherwise you will have to write the location of it.
          
docstring: Attach a database, to your current Database. If your database is in the same directory as your root file then you can just write the .DB file name, otherwise you will have to write the location of it.
docstring_tokens: Attach a database to your current Database . If your database is in the same directory as your root file then you can just write the . DB file name otherwise you will have to write the location of it .
code: def attach_database(self,databaseNameORlocation : str, aliasName : str):
          """
          Attach a database, to your current Database. If your database is in the same directory as your root file then you can just write the .DB file name, otherwise you will have to write the location of it.
          """
          try:
              dataBase = connect(
                  host = self.host,
                  user = self.userName,
                  passwd = self.passwrd,
                  database = self.database
              )
              cursor = dataBase.cursor()
  
              cursor.execute("ATTACH DATABASE " + databaseNameORlocation + ' AS ' + aliasName)
  
              dataBase.close()
              return 'Attached!'
          except Exception as error:
              raise MySQLerrorTypes.database_attach_error(error)
code_tokens: def attach_database ( self , databaseNameORlocation : str , aliasName : str ) : try : dataBase = connect ( host = self . host , user = self . userName , passwd = self . passwrd , database = self . database ) cursor = dataBase . cursor ( ) cursor . execute ( "ATTACH DATABASE " + databaseNameORlocation + ' AS ' + aliasName ) dataBase . close ( ) return 'Attached!' except Exception as error : raise MySQLerrorTypes . database_attach_error ( error )
short_docstring: Attach a database, to your current Database.
short_docstring_tokens: Attach a database to your current Database .
comment: """
          Attach a database, to your current Database. If your database is in the same directory as your root file then you can just write the .DB file name, otherwise you will have to write the location of it.
          """