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

Datomic doesn't have a date type, it only has a timestamp type. #11

Open
humorless opened this issue Sep 21, 2022 · 0 comments
Open

Datomic doesn't have a date type, it only has a timestamp type. #11

humorless opened this issue Sep 21, 2022 · 0 comments

Comments

@humorless
Copy link
Member

Problem

In Postgres, we actually have several time/date datatypes, and this is very useful feature which provide clear modeling of the user domain. However, if Plenish always directly map Datomic timestamp to Postgres timestamp, we can not leverage these Postgres features.

Possible Solution:

have some additional configuration for Plenish regarding column types. Now we see "oh this is :db.type/inst", so we make a postgresql timestamp (same semantics), but the use could configure that this needs to become an SQL DATE column instead, and set up some kind of coercion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant