input: from typing import List
  
  def perform_crud_operations(db_uri: str) -> None:
      """Create a REST API with Flask that allows users to perform CRUD (Create, Read, Update, Delete) operations on records in a database. The application should support adding a new record, retrieving all records, updating an existing record, and deleting a record. Use SQLAlchemy for database operations.
      >>> perform_crud_operations('sqlite:////tmp/test.db')
      # After running the function, you should be able to interact with the API to perform CRUD operations on the 'Record' model, which has an 'id' and a 'name' field.
      """
output:     
      from flask import Flask, request, jsonify
      from flask_sqlalchemy import SQLAlchemy
  
      app = Flask(__name__)
      app.config['SQLALCHEMY_DATABASE_URI'] = db_uri
      db = SQLAlchemy(app)
  
      class Record(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          name = db.Column(db.String(80), nullable=False)
  
          def to_dict(self):
              return {'id': self.id, 'name': self.name}
  
      db.create_all()
  
      @app.route('/records', methods=['POST'])
      def create_record():
          data = request.get_json()
          new_record = Record(name=data['name'])
          db.session.add(new_record)
          db.session.commit()
          return jsonify(new_record.to_dict()), 201
  
      @app.route('/records', methods=['GET'])
      def get_records():
          records = Record.query.all()
          return jsonify([record.to_dict() for record in records])
  
      @app.route('/records/<int:id>', methods=['PUT'])
      def update_record(id):
          data = request.get_json()
          record = Record.query.get(id)
          if record:
              record.name = data['name']
              db.session.commit()
              return jsonify(record.to_dict())
          return jsonify({'error': 'Record not found'}), 404
  
      @app.route('/records/<int:id>', methods=['DELETE'])
      def delete_record(id):
          record = Record.query.get(id)
          if record:
              db.session.delete(record)
              db.session.commit()
              return jsonify({'message': 'Record deleted'})
          return jsonify({'error': 'Record not found'}), 404
  
      if __name__ == '__main__':
          app.run(debug=True)
  