pg-to-ts
vramework
pg-to-ts | vramework | |
---|---|---|
2 | 2 | |
91 | 8 | |
- | - | |
3.3 | 0.0 | |
5 months ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pg-to-ts
-
ADVICE WANTED - Typescript PostgreSQL without ORM
I have so far found: - kanel https://github.com/kristiandupont/kanel - and pg-to-ts https://github.com/danvk/pg-to-ts
-
Postgres to TypeScript Interfaces and Enums
There are many forks of schemats out there that add various features. Here’s mine: 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 :)
vramework
-
Postgres to TypeScript Interfaces and Enums
This 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/243db4830d22c537...
Is it performant? Not really. But it stopped us from having to deal with the string issue which worked great.
What are some alternatives?
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
prisma1 - 💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
kanel - Generate Typescript types from Postgres
Paste JSON as Code • quicktype - Xcode extension to paste JSON as Swift, Objective-C, and more
pgtyped - pgTyped - Typesafe SQL in TypeScript
mfsqlchecker - Statically validate correctness of all your SQL queries. TypeScript, PostgreSQL
ts-sql - A SQL database implemented purely in TypeScript type annotations.
squabble - An extensible linter for SQL queries and migrations.
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.