knex.js: Detailed Overview & Metrics

v3.1.0(about 1 year ago)

This package was last published over a year ago. It may not be actively maintained.Types definitions are bundled with the npm packageNumber of direct dependencies: 14Monthly npm downloads

Knex is a flexible and feature-rich SQL query builder for Node.js, designed to work with various SQL databases such as PostgreSQL, MySQL, SQLite, and others. It allows developers to write database queries using JavaScript instead of raw SQL, providing a more intuitive and maintainable way to interact with databases. Knex supports query building, schema migrations, and connection pooling, making database operations easier and more efficient.

Compared to other SQL query builders like Sequelize or TypeORM, Knex is known for its simplicity, flexibility, and lightweight nature. It is actively maintained and widely used in the Node.js community for its ease of use and robust functionality.

Alternatives:
sequelize+
typeorm+
objection+
bookshelf+
mikro-orm+
waterline+
prisma+
massive+
pg-promise+
slonik+

Tags: node.jsSQLquery-builderdatabaseORM