Sha256: f7e8507d2f8cc5db844aa1117e7cd1bc72466d7d078b5307d0bdc6ec843ceb15
Contents?: true
Size: 698 Bytes
Versions: 12
Compression:
Stored size: 698 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes # Postgres: https://www.postgresql.org/docs/9/functions-matching.html class NotSimilar < Arel::Nodes::Similar end end module Visitors class ToSql def visit_Arel_Nodes_NotSimilar(o, collector) visit o.left, collector collector << ' NOT SIMILAR TO ' visit o.right, collector if o.escape collector << ' ESCAPE ' visit o.escape, collector else collector end end end end end # rubocop:enable Naming/MethodName # rubocop:enable Naming/UncommunicativeMethodParamName
Version data entries
12 entries across 12 versions & 1 rubygems