Re: Feature Request: UNIX_TIMESTAMP

2016-10-12 Thread Jeremy Evans
On Wednesday, October 12, 2016 at 10:42:38 AM UTC-7, Alexander Birkner wrote: > > Hello, > > we are migrating our existing backend from PHP to Ruby. > We are using Sequel with Models but we can't do some queries because there > is no way to use the MySQL function UNIX_TIMESTAMP. > > I would like

Re: Feature Request: UNIX_TIMESTAMP

2016-10-12 Thread Austin Ziegler
Couldn’t use use Sequel.function(:unix_timestamp)? It’s been a few months since I’ve written DB code, but that seems like it would work. -a On Wed, Oct 12, 2016 at 1:09 PM, Alexander Birkner wrote: > Hello, > > we are migrating our existing backend from PHP to Ruby. >

Feature Request: UNIX_TIMESTAMP

2016-10-12 Thread Alexander Birkner
Hello, we are migrating our existing backend from PHP to Ruby. We are using Sequel with Models but we can't do some queries because there is no way to use the MySQL function UNIX_TIMESTAMP. I would like to create a query like this: Service.where( :field_1 => 0, :field_2 => 0,