pg-promise
linqbox
Our great sponsors
pg-promise | linqbox | |
---|---|---|
17 | 11 | |
3,415 | 122 | |
- | - | |
5.8 | 0.0 | |
5 days ago | about 4 years ago | |
JavaScript | TypeScript | |
MIT License | GNU General Public License v3.0 or later |
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-promise
-
Planning projects ? Looking for help
Personally with more time I would also use JavaScript so I can improve it. Last time I wrote something with Express and a database connection is a long time ago and not for work, only for my personal testing. But for JavaScript database connection to PostgreSQL I recommend pg-promise. That works like a charm.
-
Ask HN: Why are so many PHP projects moving to Node?
I've always loved this project / product:
https://github.com/outline/outline
I think the guy who built it posts here. There's also pg-promise, a "Postgres interface for Node.js":
https://github.com/vitaly-t/pg-promise
-
Which ORM do you prefer with nodejs/Typescript project and why ?
Raw pgPromise with string templating.
-
Is my health check endpoint good enough?
i do have a couple of them like websocket server using ws, bullmq for sending emails and postgres listen/notify to push data to websocket clients. Would you happen to have any ideas on how to go about these? I did some research
-
Help seeding a database with PG
Yes. You can also take at the pg-promise library. https://github.com/vitaly-t/pg-promise
-
What package do you guys use for postgres in node js?
Is there any difference to the named parameters already supported? https://github.com/vitaly-t/pg-promise#named-parameters
-
DenoDB
During my years as a dev i have really started to dislike ORMs. They always fail in the end. SQL is universal, and transfers between languages and tech fields. This is why im pro-sql, and always try to avoid unnecessary abstractions.
I have actually went back to writing pure SQL in files, and using those as params for whatever db engine i use, this makes it even possible to reuse the code in other projects (even its unlikely that you can use the exact same query, but just as a "it would work" in theory).
For node based projects i have used and would probably still choose pg-promise (https://github.com/vitaly-t/pg-promise).
-
How to use PostgreSQL with Node?
Since I'm decent at writing SQL queries and I don't want to learn additional syntax to work with ORMs/query builders, I stay as close as possible to the database driver. pg-promise is an excellent library built on top of the Node.js driver for PostgreSQL. It's built with promises in mind, it's well-tested and typed.
-
5 reasons to use MongoDB as a bootstrapper
dont believe me? look at how many open issues they have https://github.com/vitaly-t/pg-promise/issues
-
Building a SaaS in one week: How I built OnlineOrNot (Next.js/React, Tailwind, GraphQL, TypeScript)
I just used pg-promise - it handles the connections for you, up to you to write the SQL.
linqbox
-
TypeScript please give us types
Positioning the Ark parser as a unified string syntax for runtime types (to me at least) makes the rationales and justifications for string parsing much more apparent and focused, much more so than just saying "hey, here's a library to write your types with strings just because". It also services as a prototypal implementation of what JS types "could" look like one day (if only we could drop the `scope` and `type` and just write the types naturally in JavaScript), I took a similar approach with https://github.com/sinclairzx81/linqbox many years ago.
-
What do you guys think of this SQL LINQ-like syntax?
Well, I wrote this ... https://github.com/sinclairzx81/linqbox, an actual LINQ syntax mostly for cartesian products (because cartesians with lambda are quite awkward after all)
-
Why we ditched GraphQL for tRPC
One shouldn't need to look OData query syntax. For a C# client querying an OData endpoint, one simply need only write LINQ. A problem that exists in current fashionable languages is they do not support anything resembling LINQ. (Although some options exist for Elixir (Ecto) and Rust (implemented via proceedural macro). As for JavaScript....I have tried https://github.com/sinclairzx81/linqbox
- Compiling typescript to.... SQL?
-
Why C# goes well with TypeScript
If you ask me, TypeScript is a legitimate successor to C#. The only stuff missing in TypeScript is LINQ (as you mentioned) which is why I wrote this, and System.Reflection which is why I wrote this.
- LINQ implemented in JavaScript Template Literals
-
Why are we still using ORMs?
Thanks for the response. Here's a fun library I wrote https://github.com/sinclairzx81/linqbox
- Query Expressions for JavaScript (LINQ)
What are some alternatives?
Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.
chiselstrike - ChiselStrike abstracts common backends components like databases and message queues, and let you drive them from a convenient TypeScript business logic layer
TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
linq.ts - 🌀LINQ for TypeScript
Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.
sharp-collections - TypeScript LINQ library implementing all .NET LINQ methods and some more.
postgres - Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
LInQer - The C# Language Integrated Queries ported for Javascript for amazing performance
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
typescript-needs-types - TypeScript please give us types.
Mongoose - MongoDB object modeling designed to work in an asynchronous environment.
arktype - TypeScript's 1:1 validator, optimized from editor to runtime