module Mysql::Partitioner::Strategy
Public Class Methods
build(session, table, config)
click to toggle source
# File lib/mysql/partitioner/strategy.rb, line 7 def self.build(session, table, config) case config[:name] when "partition_by_pk_drop_by_time" then PartitionByPkDropByTime.new(Mysql::Partitioner::Operation::Range.new(table, session), config) else raise "Unknown strategy error" end end