code: def get_database(self, name):
          
          try:
              return [db for db in self.list_databases()
                      if db.name == name][0]
          except IndexError:
              raise exc.NoSuchDatabase("No database by the name '%s' exists." %
                      name)
docs: Finds the database in this instance with the specified name, and
          returns a CloudDatabaseDatabase object. If no match is found, a
          NoSuchDatabase exception is raised.