module Tablature::Adapters::Postgres::Quoting
@api private
Public Instance Methods
quote_collection(values)
click to toggle source
# File lib/tablature/adapters/postgres/quoting.rb, line 14 def quote_collection(values) Array.wrap(values).map(&method(:quote)).join(',') end
quote_partition_key(key)
click to toggle source
# File lib/tablature/adapters/postgres/quoting.rb, line 6 def quote_partition_key(key) if key.respond_to?(:call) key.call.to_s else key.to_s.split('::').map(&method(:quote_column_name)).join('::') end end