Class: SQL::Composer::Backends::Postgres
- Inherits:
-
Object
- Object
- SQL::Composer::Backends::Postgres
- Defined in:
- lib/sql/composer.rb
Instance Method Summary collapse
Instance Method Details
#escape(input) ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/sql/composer.rb', line 25 def escape(input) case input when String %('#{input}') else raise InputTypeNotSupported, input.class end end |
#quote(identifier) ⇒ Object
21 22 23 |
# File 'lib/sql/composer.rb', line 21 def quote(identifier) %("#{identifier.to_s}") end |