B
B
Boris Ivanov @Boris2014-07-28 15:17:11
ruby
Boris Ivanov @Boris, 2014-07-28 15:17:11

How to use in Ruby 2.1.1 user defined type postgresql?

how to call the following postgresql stored procedure, using bind variables in ruby

create or replace function el_folder_save
(
  i_privacy_list	el_privacy_type[]
) ...

CREATE TYPE el_privacy_type AS
(
  profile_id    bigint,
  privacy_type  smallint
);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BorisIvanov, 2015-12-04
Ivanov

a year later, I'll answer myself :) you need to use json, this will solve the problem of transferring complex data, postgresql from 9.4 works very well with json.
Oftop . and yes instead of RoR, I chose django in python there is an option to use custom types to pass to postgresql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question