Re: FrozenError when using pg_enum

2018-04-24 Thread Jeremy Evans
On Tuesday, April 24, 2018 at 1:21:52 PM UTC-7, Marcelo Pereira wrote: > > Hello, > > I'm running Sequel 5.6.0 and Ruby 2.5.1 and, when I try to create a > PostgreSQL enum, using the pg_enum extension, I get the following error. > > FrozenError: can't modify frozen > # > >

FrozenError when using pg_enum

2018-04-24 Thread Marcelo Pereira
Hello, I'm running Sequel 5.6.0 and Ruby 2.5.1 and, when I try to create a PostgreSQL enum, using the pg_enum extension, I get the following error. FrozenError: can't modify frozen # /usr/local/bundle/gems/sequel-5.6.0/lib/sequel/extensions/pg_enum.rb:112:in `parse_enum_labels'

Re: Table valued functions

2018-04-24 Thread Jeremy Evans
On Tuesday, April 24, 2018 at 7:21:26 AM UTC-7, Phil Stewart wrote: > > I've been trying to work out what the best way is to use table valued > functions in Sequel - can anyone help? I can do something like this, which > allows basic querying: > > @tvf_dataset = DB["SELECT * FROM

Table valued functions

2018-04-24 Thread Phil Stewart
I've been trying to work out what the best way is to use table valued functions in Sequel - can anyone help? I can do something like this, which allows basic querying: @tvf_dataset = DB["SELECT * FROM someTableValueFunction(?, ?)", arg1_value, arg2_value] This works if I just want the whole