RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numeric column generated as string

bombillazo opened this issue · comments

Hello, We have Numeric columns that being defined a Generated<Numeric> and when used in queries the datatype of the returned column comes up as string. Should it not be set to number?

export type Numeric = ColumnType<string, string | number, string | number>;

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

This is correctly implemented, Numeric is possibly string since the value stored cannot be stored in a JS number int.