Module: Sqlyzer::Parameter::Types::Text

Defined in:
lib/sqlyzer/parameters.rb

Overview

Sql Text type Mixin

Instance Method Summary collapse

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_typeObject



77
# File 'lib/sqlyzer/parameters.rb', line 77

def     to_sql_type; 'TEXT'; end