Sha256: f183eecde199f7448814de5a203969729645c926d46c40c055bae4feb8bccfcb
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
class BoundFinder def initialize(client, table, column) @client = client @table = table @column = column end def max @client.select("MAX(#{@column})", @table) end def min @client.select("MIN(#{@column})", @table) end def max_length @client.select("MAX(LENGTH(#{@column}))", @table) end def min_length @client.select("MIN(LENGTH(#{@column}))", @table) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sqlite2mysql-0.2.0 | lib/sqlite2mysql/services/bound_finder.rb |