ts-typed-sql
ts-typed-sql copied to clipboard
Put types in their own namespace
I think it would be better to name the types more exactly like their pg counterparts e.g.
import {types as t} from '@hediet/typed-sql';
t.smallint
t.integer
t.bigint
t.decimal
t.numeric
t.real
t.double_precision
But what about other database drivers? I don't have a strategy for being database independent yet.
Might be a good idea to separate the postgresql stuff (adapter and type definitions) into a separate package like @hediet/typed-sql-postgres. or @typed-sql/postgres
Not sure how the serializer / etc can be shared between different databases.