knex

v3.1.0 MIT

A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3

Weekly Downloads
3.4M
Stars
20.2K
Forks
2.2K
Open Issues
702
Unpacked Size
873.9 kB

Download Trends

Download trends for knex03.1M6.2M9.3M12.4MFeb 25May 25Aug 25Nov 25Feb 26
knex

AI Insights

Knex is a comprehensive SQL query and schema builder that supports multiple databases, including PostgreSQL, MySQL, and SQLite3. Developers use it for its powerful query building capabilities, unifying various SQL dialects under a single API.

When to use

  • When you need to work with multiple SQL databases using a single library.
  • For applications requiring complex queries and schema migrations.
  • If you prefer a fluent interface for building SQL queries programmatically.

When NOT to use

  • If your project requires native SQL features not supported by Knex.
  • When dealing with very simple database interactions where an ORM may be overkill.
  • If you prefer a minimalistic or single-database approach.

Alternatives

Categories