Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mmontone opened this issue Jun 21, 2015 · 1 comment
Open

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

mmontone opened this issue Jun 21, 2015 · 1 comment
Assignees
Milestone

Comments

@mmontone
Copy link

Hi.

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

@eudoxia0
Copy link
Owner

eudoxia0 commented Jan 7, 2016

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 eudoxia0 self-assigned this Jan 7, 2016
@eudoxia0 eudoxia0 added this to the Crane v1.0 milestone Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants