module Tsuga::Adapter::Sequel::Cluster::Scopes
Public Instance Methods
at_depth(depth)
click to toggle source
# File lib/tsuga/adapter/sequel/cluster.rb, line 30 def at_depth(depth) where(depth: depth) end
in_tile(*tiles)
click to toggle source
# File lib/tsuga/adapter/sequel/cluster.rb, line 34 def in_tile(*tiles) depths = tiles.map(&:depth).uniq if depths.length > 1 raise ArgumentError, 'all tile must be at same depth' end where(tilecode: tiles.map(&:prefix)) end