database-js
puresql
Our great sponsors
database-js | puresql | |
---|---|---|
4 | 1 | |
1,158 | 50 | |
0.5% | - | |
7.6 | 0.0 | |
about 11 hours ago | over 1 year ago | |
TypeScript | JavaScript | |
Apache License 2.0 | - |
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.
database-js
- What practices do you recommend for a startup using Next.js, fullstack with tRPC vs seperate backend with express?
-
Postgres over WebSocket
That I understand.
But of course for the user of the driver it might be fine if that is 2 or more HTTP requests. I expect that is how PlanetScale does it in their transaction implementation, https://github.com/planetscale/database-js#transactions, and I know that is how Prisma Data Proxy handles it - the transaction is identified with an ID which is returned to the Client and then included in further requests for the same transaction.
It's valid tradeoff to make to prefer a persistent connection to keep the overhead for multiple queries in a transaction as low as possible - which seems what Neon has done here.
-
Typesafe Database Queries on the Edge
The PlanetScale team recently released their database driver which lets your query your PlanetScale database using the Fetch API. This means you can use this library to query your database in edge environments which is HUGE.
-
The PlanetScale serverless driver for JavaScript
> what happens if the company goes down?
It's open-source. What's your concern now?
https://github.com/planetscale/database-js
puresql
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.
database-js - Common Database Interface for Node
Lowdb - Simple and fast JSON database
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
NeDB - The JavaScript Database, for Node.js, nw.js, electron and the browser
rdb - Javascript and Typescript ORM with full intellisense, no-code generations. Works over http as well.
hugo-extended - ✏️ Plug-and-play Node.js wrapper for Hugo Extended, the awesomest static-site generator.
OpenRecord - Make ORMs great again!
pg-mem - An in memory postgres DB instance for your unit tests
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.
Shopify-api-node - Node Shopify connector sponsored by MONEI
opensql - OpenSql is a promise-based Node.js ORM tool for MySql, Postgres and Microsoft Sql Server.