Method: Sequel::Postgres::Adapter#escape_string

Defined in:
lib/sequel/adapters/postgres.rb

#escape_string(str) ⇒ Object

Escape strings by doubling apostrophes. This only works if standard conforming strings are used.



105
106
107
# File 'lib/sequel/adapters/postgres.rb', line 105

def escape_string(str)
  str.gsub("'", "''")
end