Knex
database-js
Our great sponsors
Knex | database-js | |
---|---|---|
95 | 4 | |
18,720 | 1,159 | |
0.8% | 0.7% | |
8.1 | 7.7 | |
1 day ago | 14 days ago | |
JavaScript | TypeScript | |
MIT License | 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.
Knex
-
JavaScript Libraries for Implementing Trendy Technologies in Web Apps in 2024
Knex.js
-
Create a Blog web app using Adonis.js 6
AdonisJS core team has created/maintains Lucid. It is a SQL query builder, and an Active Record ORM built on top of Knex.
-
Type-safe Data Access in Go using Prisma and sqlc
Now, why not use an ORM? I've seen performance issues too many times with ORMs. I prefer writing my own SQL to avoid surprises. After all, I know the database schema and writing code for a specific purpose very often leads to better performance than generic code. ORMs have to support all kinds of database schemas. I only have to support mine. Having successfully used Knex.js in NodeJS (a popular query builder) in the past, I know writing SQL queries myself is not hard and provides very good performance.
-
Can I create another WordPress that satisfies humanity?
Given the dynamic nature of the schema, we employ Knex, a query builder, for database access.
-
What's wrong with Node.js ORMs? Thousands of issues? Why?
https://www.npmjs.com/package/knex - 779 issues
- Knex 3.0
-
Plankaban Raspberry Pi 4 Setup Help
# related: https://github.com/knex/knex/issues/2354
-
Credentials Leak with Knex
This article will be focused on a security issue that I found in Knex and how to mitigate it, but I'll also talk briefly about the social aspects of this problem.
- [Node] Knex.js: comment correctement chaîner et utiliser .First () pour interroger?
-
Why SQL is right for Infrastructure Management
SQL is an old, irregular language to work with, but it is better known than HCL and SQL already has it's own Pulumi/CDK in the form of every ORM with introspection (like Javascript's Prisma, Python's Django, Go's XO etc) and QueryBuilder (LINQ, Knex, etc) in whatever programming language you prefer. You probably already know it.
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?
What are some alternatives?
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Lowdb - Simple and fast JSON database
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.
puresql - ES6/7 ready SQL library for node.js inspired by Clojure's yesql
pg-promise - PostgreSQL interface for Node.js
NeDB - The JavaScript Database, for Node.js, nw.js, electron and the browser
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.
hugo-extended - ✏️ Plug-and-play Node.js wrapper for Hugo Extended, the awesomest static-site generator.
kysely - A type-safe typescript SQL query builder [Moved to: https://github.com/kysely-org/kysely]
pg-mem - An in memory postgres DB instance for your unit tests
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
Shopify-api-node - Node Shopify connector sponsored by MONEI