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

Version Path
edge_rider-2.3.1 lib/edge_rider/development.rb
edge_rider-2.3.0 lib/edge_rider/development.rb
edge_rider-2.2.0 lib/edge_rider/development.rb
edge_rider-2.1.1 lib/edge_rider/development.rb
edge_rider-2.1.0 lib/edge_rider/development.rb
edge_rider-2.0.0 lib/edge_rider/development.rb
edge_rider-1.1.0 lib/edge_rider/development.rb
edge_rider-1.0.0 lib/edge_rider/development.rb
edge_rider-0.3.3 lib/edge_rider/development.rb
edge_rider-0.3.2 lib/edge_rider/development.rb