awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
knex avatar

knex/knex

0
View on GitHub↗
20,300 stars·2,201 forks·JavaScript·MIT·60 viewsknexjs.org↗

Knex

Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and a versioned schema migration tool. It enables programmatic database interaction across multiple SQL engines, including PostgreSQL, MySQL, SQLite3, SQL Server, CockroachDB, and Oracle.

The project distinguishes itself through a fluent interface for constructing complex SQL statements and a dedicated framework for database seeding. It utilizes specialized dialects to translate generic query representations into database-specific syntax while maintaining a consistent API across different vendors.

The platform covers a broad range of relational database management capabilities, including atomic transaction control, schema definition, and relational constraint management. It also provides tools for query result pagination, stream-based processing for large datasets, and the ability to execute stored procedures and raw SQL expressions.

A command-line interface is available for automating the execution of database migrations and seeding workflows.

Features

  • Fluent Query Builders - Provides a fluent, chainable API for programmatically constructing complex SQL queries across multiple dialects.
  • SQL Query Builders - Provides a fluent, programmatic interface for constructing complex SQL statements across multiple database dialects.
  • Connection Pooling - Maintains and reuses a cache of database sessions to optimize performance and resource utilization.
  • Connection Pools - Maintains a cache of established database sessions to reduce the overhead of creating new connections.
  • Data Seeding Utilities - Provides a dedicated framework for populating database tables with initial or dummy data for development and testing.
  • Database Interaction Layers - Offers a comprehensive programmatic interface for executing queries and managing transactions in SQL databases.
  • Connection and Transaction Management - Manages persistent connections, resource pooling, and atomic transaction control across various SQL engines.
  • Atomic Transactions - Provides mechanisms to execute multiple data manipulation operations as a single atomic unit to ensure data integrity.
  • Connection Pool Managers - Implements a connection pool manager to optimize resource utilization by caching and reusing database sessions.
  • Database Schema Migrations - Provides a versioned migration system to automate structural updates to database schemas while maintaining compatibility.
  • Database Connections - Handles the lifecycle of opening and initializing secure connections to database servers.
  • Database Query Builders - Provides a fluent API for programmatic SQL construction across multiple database dialects.
  • Schema Definitions - Enables the programmatic definition and modification of table structures across various SQL database engines.
  • Schema Migration Tools - Implements a versioned system for creating and modifying database table structures and indexes.
  • SQL Dialect Adapters - Translates generic query representations into database-specific SQL syntax using specialized dialect adapters.
  • Table Definitions - Offers primitives for defining database tables, specifying column types, and establishing relational constraints.
  • Transaction Management - Manages the transaction lifecycle, including support for configurable isolation levels and nested transactions.
  • Query Parameterization - Uses prepared statements and parameterized query binding to separate data from commands and prevent SQL injection.
  • Pool Configuration - Provides a system to configure connection limits and timeout rules for stable database communication.
  • Data Upsert Operations - Provides upsert operations to insert new records or update existing ones based on conflict targets.
  • Database Indexing - Provides programmatic tools for building and managing specialized database indexes to optimize retrieval performance.
  • Database Views - Includes capabilities for defining and updating standard or materialized database views.
  • Indexes and Constraints - Provides tools for creating and managing database indexes and integrity constraints, including foreign keys.
  • Pagination - Implements result set windowing using limit and offset parameters within the query builder.
  • Result Streaming - Enables incremental fetching of large datasets to prevent memory overload during processing.
  • Raw SQL Execution - Allows the creation and execution of raw SQL expressions with parameter binding for complex queries.
  • Result Streaming APIs - Supports incremental data retrieval via result streaming to process large datasets without overloading memory.
  • Deferred Query Compilation - Constructs internal query objects that are only compiled to raw SQL at the moment of execution.
  • Database Administration CLI - Ships a command-line interface for automating database migrations and data seeding workflows.
  • Databases and Data Tools - Flexible SQL query builder for multiple databases.
  • Query Builders - Flexible SQL query builder.
  • Search and Databases - Provides a flexible SQL query builder.

Star history

Star history chart for knex/knexStar history chart for knex/knex

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does knex/knex do?

Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and a versioned schema migration tool. It enables programmatic database interaction across multiple SQL engines, including PostgreSQL, MySQL, SQLite3, SQL Server, CockroachDB, and Oracle.

What are the main features of knex/knex?

The main features of knex/knex are: Fluent Query Builders, SQL Query Builders, Connection Pooling, Connection Pools, Data Seeding Utilities, Database Interaction Layers, Connection and Transaction Management, Atomic Transactions.

Which projects share features with knex/knex?

Projects with overlapping indexed features include: seaql/sea-orm — Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… uptrace/bun — Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping.… simolus3/drift — Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database… mikro-orm/mikro-orm — Mikro-ORM is a TypeScript-based object-relational mapping system that provides a unified persistence layer for Node.js… go-xorm/xorm — xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries…

Projects sharing features with Knex

These projects share indexed features with Knex. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • seaql/sea-ormSeaQL avatar

    SeaQL/sea-orm

    9,410View on GitHub↗

    Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly typed objects. It provides a relational database mapper for performing CRUD operations across MySQL, PostgreSQL, and SQLite, and includes a programmatic dynamic query builder for constructing complex SQL statements. The project distinguishes itself by providing a GraphQL schema generator that transforms database entities into typed schemas with built-in pagination and filters. It also features a dedicated database migration tool for defining and applying versioned schema chan

    Rustdatabasehacktoberfestloco
    View on GitHub↗9,410
  • codeigniter4/codeigniter4codeigniter4 avatar

    codeigniter4/CodeIgniter4

    5,924View on GitHub↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    View on GitHub↗5,924
  • uptrace/bunuptrace avatar

    uptrace/bun

    4,867View on GitHub↗

    Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping. It functions as a programmable SQL query builder, a database connection manager, and a tool for mapping database tables to Go structs. The project distinguishes itself through a multi-dialect SQL support system, allowing a single codebase to interact with different database engines via a consistent interface. It includes a built-in database observability tool for query interception, distributed tracing, and logging, as well as a schema migration tool for versioning structural c

    Godatabasegogolang
    View on GitHub↗4,867
  • simolus3/driftsimolus3 avatar

    simolus3/drift

    3,231View on GitHub↗

    Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries

    Dartdartdart-build-systemflutter
    View on GitHub↗3,231
  • Compare all 30 related projects→