Skip to content

DATE support #195

Closed
Closed
@maxhawkins

Description

@maxhawkins

With this schema

CREATE TABLE users ( birthday DATE );

I expect a time.Time to be generated

type User struct {
  Birthday time.Time
}

Instead sqlc says unknown Postgres type: date and uses an interface{}

type User struct {
  Birthday interface{}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions