class BoundFinder
Public Class Methods
new(client, table, column)
click to toggle source
# File lib/sqlite2mysql/services/bound_finder.rb, line 2 def initialize(client, table, column) @client = client @table = table @column = column end
Public Instance Methods
max()
click to toggle source
# File lib/sqlite2mysql/services/bound_finder.rb, line 8 def max @client.select("MAX(#{@column})", @table) end
max_length()
click to toggle source
# File lib/sqlite2mysql/services/bound_finder.rb, line 16 def max_length @client.select("MAX(LENGTH(#{@column}))", @table) end
min()
click to toggle source
# File lib/sqlite2mysql/services/bound_finder.rb, line 12 def min @client.select("MIN(#{@column})", @table) end
min_length()
click to toggle source
# File lib/sqlite2mysql/services/bound_finder.rb, line 20 def min_length @client.select("MIN(LENGTH(#{@column}))", @table) end