Module: Greenroom::Census::Reader

Defined in:
lib/greenroom/census/run.rb

Overview

Where a row is actually read from. Direct just calls the block; a replica-reading implementation (ActiveRecord::Base.connected_to(role: :reading, prevent_writes: true)) is a separate concern from the census core and is not implemented here -- this one-method interface (#call { }) is fixed now so a host can supply its own without touching Run.

Defined Under Namespace

Classes: Direct