4 ms·
There are many forks of schemats out there that add various features. Here’s mine: https://github.com/danvk/pg-to-ts https://github.com/danvk/pg-to-ts It copie
by danvk 5y ago
There are many forks of schemats out there that add various features. Here’s mine: https://github.com/danvk/pg-to-ts https://github.com/danvk/pg-to-ts
It copies Postgres comments over to JSDoc/TSDoc comments, emits some data about foreign key relationships and supports TS types for json/jsonb columns via @type comments. Feel free to copy any of those feature if you think they’re good ideas :)
- yasserf 5y agoThis is awesome! the json types part is perfect. If I found your fork earlier I would have just used that as its what I need for jsonb. The dates solution I fixed in a rest API wrapper on the client side. It's not great but it hides away the date serialisation issues https://github.com/vramework/vramework/blob/243db4830d22c5378326a725aa703903fd14cda2/generic/src/rest.ts#L29 https://github.com/vramework/vramework/blob/243db4830d22c537... Is it performant? Not really. But it stopped us from having to deal with the string issue which worked great.