module ActiveRecord::ConnectionAdapters::Hanaclient::Quoting
Public Instance Methods
fetch_type_metadata(sql_type)
click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 41 def fetch_type_metadata(sql_type) Hanaclient::TypeMetadata.new(super(sql_type)) end
quote_column_name(name)
click to toggle source
Replaces any “ symbols with ”“
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 7 def quote_column_name(name) @quoted_column_names = @quoted_column_names || {} @quoted_column_names[name] ||= %Q("#{super.gsub('"', '""')}").freeze end
quote_table_name(name)
click to toggle source
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 32 def quote_table_name name name.to_s end
quote_table_name_for_assignment(table, attr)
click to toggle source
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 28 def quote_table_name_for_assignment(table, attr) quote_column_name(attr) end
quoted_false()
click to toggle source
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 20 def quoted_false "false".freeze end
quoted_time(value)
click to toggle source
Gets the time from a date string
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 37 def quoted_time(value) quoted_date(value).match(/[0-2][0-9]:[0-9][0-9]:[0-9][0-9]/)[0] end
quoted_true()
click to toggle source
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 12 def quoted_true "true".freeze end
unquoted_false()
click to toggle source
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 24 def unquoted_false "false".freeze end
unquoted_true()
click to toggle source
# File lib/active_record/connection_adapters/hanaclient/quoting.rb, line 16 def unquoted_true "true".freeze end