Module: Tablature::Adapters::Postgres::Quoting Private
- Included in:
- Handlers::Base
- Defined in:
- lib/tablature/adapters/postgres/quoting.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #quote_collection(values) ⇒ Object private
- #quote_partition_key(key) ⇒ Object private
Instance Method Details
#quote_collection(values) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# 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) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 9 10 11 12 |
# 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 |