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