Sha256: f34ff07a0884ff31500f6da9248a4fe3c30f922c57d57601ce3a3088904d9777
Contents?: true
Size: 383 Bytes
Versions: 10
Compression:
Stored size: 383 Bytes
Contents
module EdgeRider module Development extend self def selects_star_with_conditions_pattern(table, conditions) table = Regexp.quote(table) conditions = Regexp.quote(conditions) unless conditions.is_a?(Regexp) quote = '[`"]?' /\ASELECT (#{quote}#{table}#{quote}\.)?\* FROM #{quote}#{table}#{quote}\s+WHERE \(?#{conditions}\)?\s*\z/ end end end
Version data entries
10 entries across 10 versions & 1 rubygems