Module: Sqlyzer::Parameter::Types::Text
- Defined in:
- lib/sqlyzer/parameters.rb
Overview
Sql Text type Mixin
Instance Method Summary collapse
-
#to_sql(owner) ⇒ Object
Ruby String to Sql Text serialization with Sql escaping notation.
- #to_sql_type ⇒ Object
Instance Method Details
#to_sql(owner) ⇒ Object
Ruby String to Sql Text serialization with Sql escaping notation.
79 80 81 |
# File 'lib/sqlyzer/parameters.rb', line 79 def to_sql(owner) "E'#{super(owner).to_s.gsub "'", "\\'"}'" end |
#to_sql_type ⇒ Object
77 |
# File 'lib/sqlyzer/parameters.rb', line 77 def to_sql_type; 'TEXT'; end |