My problem with timestamp fields is continuing.
I am using play framework with squeryl. I am using Postgres.
In each db table I have two fields 'created_at' and 'updated_at'. Type of this fields is timestamp without timezone.
I am trying to find of automatically saving value of this fields using squeryl.
New record saving in sql:
insert into test_table (name, created_at, updated_at)
values('aaaa', LOCALTIMESTAMP, LOCALTIMESTAMP)
Update record in sql (changed name field value):
update test_table SET name='asdf', updated_at=LOCALTIMESTAMP
where id=100
How to implement this in squeryl??? Can I use postgres specific keywords like 'LOCALTIMESTAMP' ?
If not, please, direct me to right direction.