crane icon indicating copy to clipboard operation
crane copied to clipboard

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

Open mmontone opened this issue 10 years ago • 1 comments

Hi.

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

mmontone avatar Jun 21 '15 22:06 mmontone

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.")))

eudoxia0 avatar Jan 07 '16 23:01 eudoxia0