text: const ICrud = require('./iCrud');
  
  class ContextStrategy extends ICrud {
    constructor(strategy) {
      super();
      this._database = strategy;
    }
  
    create(item) {
      return this._database.create(item);
    }
  
    read(query, skip, limit) {
      return this._database.read(query, skip, limit);
    }
  
    update(id, item) {
      return this._database.update(id, item);
    }
  
    delete(id) {
      return this._database.delete(id);
    }
  
    isConnected() {
      return this._database.isConnected();
    }
  
    connect() {
      return this._database.connect();
    }
  }
  
  module.exports = ContextStrategy;