Sha256: af18b6613e9a44aff335190e0a53932555f259519ec0ae801f6cb154e0a1d860
Contents?: true
Size: 219 Bytes
Versions: 1
Compression:
Stored size: 219 Bytes
Contents
# frozen_string_literal: true module Grumlin module Middlewares class RunQuery < Middleware def call(env) env[:results] = env[:pool].acquire { |c| c.write(env[:query]) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grumlin-0.23.0 | lib/grumlin/middlewares/run_query.rb |