Hi,
for a simple table like
create_table :nodes do
primary_key :id
column :last_checkin, 'timestamp with timezone'
end
I'd like to use the database's idea of time rather than the server's in the
corresponding model class, i.e
class Node < Sequel::Model
def checkin
# This doesn't work, but I'd like to do something like this so that
# ultimately the update query looks like
# update nodes
# set last_checkin = now()
# where id = :some_id
self.last_checkin = Sequel.function(:now)
save_changes
end
Is something like that possible ?
David
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.