Skip to content

Support a Date Scalar Type  #255

Closed
Closed

Description

@aaronhayes

Problem

Lots of databases support Date types. We don't have support them yet because not all databases support them.

Possible Solution

In the databases that support Date types, we can use datasource-specific attributes.

Original Solution

It would be useful to have a Date scalar type in addition to DateTime. It's a common requirement so it would make sense to build into the core scalar types.

As an alternative is there a way to define custom types which make use of the underlying database types? I've had a look at this documentation but that seems to extend the type with constraints.
I'm interested in something like

type Date = @pg.date

Activity

  1. added
    kind/feature
    on Jul 28, 2019
  2. matthewmueller commented on May 18, 2020

    @matthewmueller
    Contributor

    Hey @aaronhayes, I've re-written your issue to add a problem statement. Hope you don't mind :-)

  3. changed the title [-]Date Scalar Type [/-] [+]Support a Date Scalar Type [/+] on May 18, 2020
  4. albertoperdomo commented on Feb 3, 2021

    @albertoperdomo
    Contributor
  5. added a commit that references this issue on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/featuretopic: native database types

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions