raise"#{model_class} does not have an ID column of #{primary_column_name} to use for batch ranges"unlessmodel_class.column_names.include?(primary_column_name.to_s)
raise"#{primary_column_name} is not an integer column"unlessmodel_class.columns_hash[primary_column_name.to_s].type==:integer
raise"#{primary_column_name} is not an integer or string column"unless[:integer,:string].include?(model_class.columns_hash[primary_column_name.to_s].type)