pg-promise VS linqbox

Compare pg-promise vs linqbox and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
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
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of pg-promise. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-26.
  • Planning projects ? Looking for help
    1 project | /r/webdev | 20 May 2023
    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?
    6 projects | news.ycombinator.com | 26 Jan 2023
    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 ?
    2 projects | /r/node | 25 Jan 2023
    Raw pgPromise with string templating.
  • Is my health check endpoint good enough?
    4 projects | /r/node | 3 Jan 2023
    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
    1 project | /r/learnjavascript | 17 Aug 2021
    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?
    6 projects | /r/PostgreSQL | 20 Jun 2021
    Is there any difference to the named parameters already supported? https://github.com/vitaly-t/pg-promise#named-parameters
  • DenoDB
    15 projects | news.ycombinator.com | 17 Jun 2021
    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?
    3 projects | /r/node | 14 Jun 2021
    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
    1 project | /r/SaaS | 12 May 2021
    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)
    4 projects | /r/reactjs | 8 Mar 2021
    I just used pg-promise - it handles the connections for you, up to you to write the SQL.

linqbox

Posts with mentions or reviews of linqbox. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-08.
  • TypeScript please give us types
    4 projects | /r/typescript | 8 Jul 2023
    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?
    1 project | /r/typescript | 27 Jan 2023
    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
    1 project | /r/programming | 24 Nov 2022
    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?
    5 projects | /r/typescript | 15 Jun 2022
  • Why C# goes well with TypeScript
    3 projects | /r/typescript | 21 Dec 2021
    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
    4 projects | /r/javascript | 27 Mar 2021
  • Why are we still using ORMs?
    2 projects | /r/typescript | 3 Mar 2021
    Thanks for the response. Here's a fun library I wrote https://github.com/sinclairzx81/linqbox
  • Query Expressions for JavaScript (LINQ)
    1 project | /r/javascript | 31 Dec 2020
    1 project | /r/typescript | 31 Dec 2020
    1 project | /r/node | 31 Dec 2020

What are some alternatives?

When comparing pg-promise and linqbox you can also consider the following projects:

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