Method: Sequel::Postgres::JSONDatabaseMethods#bound_variable_arg

Defined in:
lib/sequel/extensions/pg_json.rb

#bound_variable_arg(arg, conn) ⇒ Object

Handle json and jsonb types in bound variables


366
367
368
369
370
371
372
373
# File 'lib/sequel/extensions/pg_json.rb', line 366

def bound_variable_arg(arg, conn)
  case arg
  when JSONObject, JSONBObject
    Sequel.object_to_json(arg)
  else
    super
  end
end