That worked. Thanks for the help.
On Wednesday, April 25, 2018 at 6:52:52 PM UTC-5, Jeremy Evans wrote:
>
> On Wednesday, April 25, 2018 at 4:21:07 PM UTC-7, craig buchanan wrote:
>>
>> What is the recommended way to override the initialize method for a class
>> that is a descendant of
On Wednesday, April 25, 2018 at 4:21:07 PM UTC-7, craig buchanan wrote:
>
> What is the recommended way to override the initialize method for a class
> that is a descendant of Sequel::Model?
>
You should make sure to call super if you override any of Sequel::Model's
methods, and return the same
What is the recommended way to override the initialize method for a class
that is a descendant of Sequel::Model?
class User < Sequel::Model
def initialize(*args)
...
end
end
This results in:
irb(main):002:0> u=User.new(name:'foo')
=> #
rather than:
irb(main):001:0>
On Wednesday, April 25, 2018 at 7:34:51 AM UTC-7, Dragutin Cvetkovic wrote:
>
> Thank you for the response.
>
> I was looking at the online Ruby docs and other material, but I am not
> able to find out what Sequel::DatabaseError would return, nor how to handle
> that return?
>
Thank you for the response.
I was looking at the online Ruby docs and other material, but I am not able
to find out what Sequel::DatabaseError would return, nor how to handle that
return?
Would you be able to suggest / give a hint / point in the direction of
where to learn more about this?
On Wednesday, April 25, 2018 at 2:39:23 AM UTC-7, Dragutin Cvetkovic wrote:
>
> Hi all,
>
> I am pretty new to Sequel and Ruby in general, so I apologize if the
> questions I ask are a bit repetitive and reek of newbiness:
>
> Consider the following code:
>
> begin
>
> dbh =
Hi all,
I am pretty new to Sequel and Ruby in general, so I apologize if the
questions I ask are a bit repetitive and reek of newbiness:
Consider the following code:
begin
dbh = Sequel.connect('oracle://user:password@hostname:port/databasename')
sql = <<- SQL
MERGE INTO
smthsmth
blabla
SQL
Yes, you are right - this was a fairly obvious oversight on my part. Thanks
a lot for the input.
Best
On Tuesday, April 24, 2018 at 10:38:33 PM UTC+2, Jeremy Evans wrote:
>
> On Tuesday, April 24, 2018 at 1:21:52 PM UTC-7, Marcelo Pereira wrote:
>>
>> Hello,
>>
>> I'm running Sequel 5.6.0 and