Sha256: 1809abc1e0e5b2ee8442be8beb618ccba2a0666904ac3c1d889bb2bc16f19752
Contents?: true
Size: 673 Bytes
Versions: 10
Compression:
Stored size: 673 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes # https://www.postgresql.org/docs/9.1/functions-string.html#FUNCTIONS-STRING-SQL class Position < Arel::Nodes::Binary alias substring left alias string right end end module Visitors class ToSql def visit_Arel_Nodes_Position(o, collector) collector << 'position(' visit o.substring, collector collector << ' in ' visit o.string, collector collector << ')' end end end end # rubocop:enable Naming/MethodName # rubocop:enable Naming/UncommunicativeMethodParamName
Version data entries
10 entries across 10 versions & 1 rubygems