eudoxia0 / crane

An ORM for Common Lisp.
http://eudoxia.me/crane/
201 stars 19 forks source link

Possible to map to a TIMESTAMP WITH TIME ZONE Postgresql type? #32

Open mmontone opened 9 years ago

mmontone commented 9 years ago

Hi.

Is it possible to map to a TIMESTAMP WITH TIME ZONE column type in Postgresql?

eudoxia0 commented 8 years ago

This should be possible, maybe by adding an option to the timestamp type to handle this.

In the rewrite branch I'm representing SQL types as CLOS classes, which can take initialization arguments, so you'll be able to do:

(deftable model ()
  ((creation :reader creation
             :type (crane.types:timestamp :timezone t)
             :documentation "The creation date.")))