input: Write a function to develop a REST API using Flask and SQLAlchemy that allows users to perform CRUD operations on a database. The API should support creating a new record, reading all records, updating an existing record, and deleting a record by ID. If the provided Flask application runs successfully, return True; otherwise, return False.
  assert flask_crud_api(['CREATE', {'name': 'John Doe'}])==True
  assert flask_crud_api(['READ'])=={'records': []}
  assert flask_crud_api(['UPDATE', {'id': 1, 'name': 'Jane Doe'}])=={'message': 'Record updated'}
  assert flask_crud_api(['DELETE', 1])=={'message': 'Record deleted'}
output: 
  def flask_crud_api(operation):
      from flask import Flask, request, jsonify
      from flask_sqlalchemy import SQLAlchemy
  
      app = Flask(__name__)
      app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
      db = SQLAlchemy(app)
  
      class Record(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          name = db.Column(db.String(80), nullable=False)
  
      @app.route('/create', methods=['POST'])
      def create():
          data = request.json
          new_record = Record(name=data['name'])
          db.session.add(new_record)
          db.session.commit()
          return jsonify({'message': 'Record created'}), 201
  
      @app.route('/read', methods=['GET'])
      def read():
          records = Record.query.all()
          return jsonify({'records': [{'id': record.id, 'name': record.name} for record in records]})
  
      @app.route('/update/<int:id>', methods=['PUT'])
      def update(id):
          data = request.json
          record = Record.query.get(id)
          if record:
              record.name = data['name']
              db.session.commit()
              return jsonify({'message': 'Record updated'})
          return jsonify({'message': 'Record not found'}), 404
  
      @app.route('/delete/<int:id>', methods=['DELETE'])
      def delete(id):
          record = Record.query.get(id)
          if record:
              db.session.delete(record)
              db.session.commit()
              return jsonify({'message': 'Record deleted'})
          return jsonify({'message': 'Record not found'}), 404
  
      if operation[0] == 'CREATE':
          with app.test_client() as client:
              response = client.post('/create', json=operation[1])
              return response.status_code == 201
      elif operation[0] == 'READ':
          with app.test_client() as client:
              response = client.get('/read')
              return response.get_json()
      elif operation[0] == 'UPDATE':
          with app.test_client() as client:
              response = client.put(f'/update/{operation[1]["id"]}', json=operation[1])
              return response.get_json()
      elif operation[0] == 'DELETE':
          with app.test_client() as client:
              response = client.delete(f'/delete/{operation[1]}')
              return response.get_json()
      return False
  