ts-safeql / safeql

Validate and auto-generate TypeScript types from raw SQL queries in PostgreSQL.

Home Page:https://safeql.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres TIME inferred as Date

binikingi opened this issue · comments

Describe the bug
selecting a TIME column inferred by sqfeql as js Date

To Reproduce
Steps to reproduce the behavior:
using postgres.js
migration:

CREATE TABLE test
(
    id serial primary key,
    test_time time not null
);

Expected behavior
TIME column should be inferred as string

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS
  • PostgreSQL 14

Additional context
None