Sha256: 95c3b0ce729299c0fbe83eaca1212a2ded653c6e4b33b1c6f1017eccc7e685c7
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes # https://www.postgresql.org/docs/9.1/sql-show.html class VariableShow < Arel::Nodes::Node attr_reader :name def initialize(name) @name = name end end end module Visitors class ToSql def visit_Arel_Nodes_VariableShow(o, collector) collector << 'SHOW ' collector << if o.name == 'timezone' 'TIME ZONE' else o.name end end end end end # rubocop:enable Naming/MethodName # rubocop:enable Naming/UncommunicativeMethodParamName
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arel_toolkit-0.3.0 | lib/arel/extensions/variable_show.rb |