ts-typed-sql icon indicating copy to clipboard operation
ts-typed-sql copied to clipboard

Put types in their own namespace

Open phiresky opened this issue 8 years ago • 2 comments

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

phiresky avatar Jun 05 '17 21:06 phiresky

But what about other database drivers? I don't have a strategy for being database independent yet.

hediet avatar Jan 10 '18 13:01 hediet

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.

phiresky avatar Jan 10 '18 15:01 phiresky