code: def rename(self, new_name):
          
          new_collection = Collection(self.db, new_name, create=False)
          assert not new_collection.exists()
  
          self.db.execute("alter table %s rename to %s" % (self.name, new_name))
          self.name = new_name
docs: Rename this collection