Module: MicroSql::PgAdapter::Conversion
Instance Method Summary collapse
Instance Method Details
#bytea(s) ⇒ Object
147 |
# File 'lib/micro_sql/pg_adapter.rb', line 147 def bytea(s); PG::Connection.unescape_bytea(s); end |
#integer(s) ⇒ Object
146 |
# File 'lib/micro_sql/pg_adapter.rb', line 146 def integer(s); s.to_i; end |
#nop ⇒ Object
142 |
# File 'lib/micro_sql/pg_adapter.rb', line 142 def nop; end |
#string(s) ⇒ Object
144 |
# File 'lib/micro_sql/pg_adapter.rb', line 144 def string(s); s; end |
#unknown(s) ⇒ Object
145 |
# File 'lib/micro_sql/pg_adapter.rb', line 145 def unknown(s); s; end |