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

ORM query builder

Ranking updated Jul 31, 2026

For orms query builders and data access%5C, the strongest matches are drizzle-team/drizzle-orm (Drizzle ORM is a TypeScript-native database toolkit that provides), mybatis-flex/mybatis-flex (MyBatis-Flex is a Java-based ORM framework and fluent query) and sequelize/sequelize (Sequelize is a feature-rich object-relational mapping library for Node). kysely-org/kysely and tgriesser/knex round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

Explore top open-source ORMs and query builders for database access. Compare features, GitHub stars, and activity to pick the right one.

ORM query builder

Find the best repos with AI.We'll search the best matching repositories with AI.
  • drizzle-team/drizzle-ormdrizzle-team avatar

    drizzle-team/drizzle-orm

    34,835View on GitHub↗

    Drizzle ORM is a TypeScript-native database toolkit providing type-safe SQL query building, schema management, and automated migrations across PostgreSQL, MySQL, SQLite, and SingleStore.

    Drizzle ORM is a TypeScript-native database toolkit that provides type-safe SQL query building, schema migrations, and relationship modeling, making it a flagship solution for modern data access.

    TypeScriptDatabase MigrationsType-Safe Query BuildersDatabase Query Builders
    View on GitHub↗34,835
  • mybatis-flex/mybatis-flexmybatis-flex avatar

    mybatis-flex/mybatis-flex

    2,554View on GitHub↗

    MyBatis-Flex is an object-relational mapping framework for Java that extends MyBatis with a fluent API and automated CRUD operations. It provides a data access suite featuring an automatic CRUD data mapper, a type-safe SQL query builder, and a row-based query engine for manipulating records without predefined entity classes. The framework includes a multi-dialect SQL translator that converts generated syntax across different database engines, such as MySQL, PostgreSQL, and Oracle. It further distinguishes itself by offering annotation-free entity mapping using runtime reflection and naming co

    MyBatis-Flex is a Java-based ORM framework and fluent query builder that provides automated CRUD operations, type-safe query construction, and cross-database dialect support.

    JavaFluent Query BuildersType-Safe Query BuildersType-Safe Query Construction
    View on GitHub↗2,554
  • sequelize/sequelizesequelize avatar

    sequelize/sequelize

    30,349View on GitHub↗

    Sequelize is an object-relational mapping library that provides a unified interface for managing relational data through code. By implementing the Active Record pattern, it maps database tables to application objects, allowing developers to perform standard create, read, update, and delete operations using high-level method calls. The library abstracts complex database interactions by translating these calls into optimized, engine-specific SQL statements, ensuring consistent behavior across different database systems. The project distinguishes itself through a comprehensive suite of tools for

    Sequelize is a feature-rich object-relational mapping library for Node.js and TypeScript that supports database-agnostic query building, schema migrations, and comprehensive association handling out of the box.

    TypeScriptDatabase MigrationsSchema MigrationsQuery Builders
    View on GitHub↗30,349
  • kysely-org/kyselykysely-org avatar

    kysely-org/kysely

    13,969View on GitHub↗

    Kysely is a TypeScript SQL query builder that provides a type-safe interface for constructing and executing database queries. It functions as a database layer that ensures schema compliance and prevents runtime errors by using a fluent interface and a programmable way to build complex SQL statements. The project features a type-safe database layer capable of inferring return types and aliases from SQL selections and joins. It also includes a SQL migration manager to track and apply schema changes across different environments to keep database versions synchronized. The toolkit covers relatio

    Kysely is a TypeScript SQL query builder that provides type-safe query construction and schema migrations, though it focuses strictly on query building rather than full object-relational mapping.

    TypeScriptDatabase MigrationsFluent Query BuildersRaw SQL Execution
    View on GitHub↗13,969
  • tgriesser/knextgriesser avatar

    tgriesser/knex

    20,314View on GitHub↗

    Knex is a programmatic SQL query builder for Node.js applications. It provides a unified interface for generating database statements and managing structural versioning through a schema migration tool. The project features a multi-dialect database layer that translates programmatic queries into specific syntax for relational databases including PostgreSQL, MySQL, SQLite3, and MSSQL. This allows for writing database logic that remains compatible across different systems. The system includes infrastructure for managing reusable database connection pools and handling relational transactions to

    Knex is a programmatic SQL query builder and schema migration tool for Node.js, fulfilling the core database-interaction requirements though it lacks object-relational mapping capabilities.

    JavaScriptDatabase Abstraction LayersDatabase Dialect AdaptersSchema Migration Tools
    View on GitHub↗20,314
  • seaql/sea-querySeaQL avatar

    SeaQL/sea-query

    1,725View on GitHub↗

    Sea-query is a database abstraction library for Rust that provides a fluent builder pattern for constructing type-safe SQL queries. It functions as a framework for defining and managing database schemas and queries through code, allowing developers to generate syntactically valid statements for multiple database engines without relying on manual string concatenation. The library distinguishes itself by using an abstract syntax tree to model queries, which enables engine-agnostic transformations and compilation into specific SQL dialects. This architecture supports cross-database portability,

    Sea-query is a database abstraction and query building library for Rust that provides a fluent builder and type-safe query construction, though it focuses purely on building queries and managing schemas rather than acting as a full-fledged ORM.

    RustFluent Query BuildersType-Safe Query BuildersMulti-Database Support
    View on GitHub↗1,725
  • go-gorm/gormgo-gorm avatar

    go-gorm/gorm

    39,798View on GitHub↗

    GORM is a developer-focused object-relational mapping library for Go that provides a comprehensive data persistence framework. It serves as a database access layer, allowing developers to map application structures to database tables and perform CRUD operations using a fluent, type-safe query builder instead of writing raw SQL. The library distinguishes itself through its association-aware persistence, which automatically tracks and synchronizes complex entity relationships during database operations. It utilizes a driver-agnostic interface to maintain consistent behavior across various stora

    GORM is a comprehensive object-relational mapping library for Go that provides a fluent query builder, schema migration tools, database agnosticism, and association handling.

    GoDatabase Abstraction LayersObject-Relational Mapping AssociationsQuery Builders
    View on GitHub↗39,798
  • typeorm/typeormtypeorm avatar

    typeorm/typeorm

    36,540View on GitHub↗

    TypeORM is an object-relational mapper for TypeScript and JavaScript that bridges the gap between object-oriented application code and relational database tables. It provides a comprehensive data persistence layer that allows developers to define database entities using class decorators or configuration objects, enabling seamless interaction with data through object-oriented patterns. The project distinguishes itself through a flexible architecture that supports both the data mapper and repository patterns, alongside a fluent query builder that translates high-level method calls into platform

    TypeORM is an object-relational mapper and data access layer for TypeScript and JavaScript that features type-safe entities, database agnosticism, schema migrations, and a fluent query builder.

    TypeScriptDatabase Abstraction LayersDatabase MigrationsObject-Relational Mapping Relations
    View on GitHub↗36,540
  • mikro-orm/mikro-ormmikro-orm avatar

    mikro-orm/mikro-orm

    9,085View on GitHub↗

    Mikro-ORM is a TypeScript-based object-relational mapping system that provides a unified persistence layer for Node.js applications. It translates TypeScript entities into relational or document-based database schemas, supporting a variety of engines including PostgreSQL, MySQL, MariaDB, MS SQL Server, SQLite, and MongoDB. The project implements the data mapper pattern to decouple in-memory domain models from the database persistence layer. It utilizes a unit of work pattern to track entity changes in memory and commit them in a single coordinated database transaction. The library covers com

    Mikro-ORM is a comprehensive TypeScript object-relational mapper and query builder for Node.js that delivers type safety, fluent querying, schema migrations, and multi-database support.

    TypeScriptFluent Query BuildersSchema MigrationsType-Safe Query Builders
    View on GitHub↗9,085
  • diesel-rs/dieseldiesel-rs avatar

    diesel-rs/diesel

    14,021View on GitHub↗

    This project is a type-safe database toolkit and object-relational mapper designed to enforce structural consistency between database schemas and application code. By leveraging compile-time validation, it ensures that SQL queries and data structures remain synchronized, preventing common errors before the application executes. It provides a comprehensive framework for relational data modeling, allowing developers to define table associations and map database results directly into strongly-typed language objects. The library distinguishes itself through its focus on compile-time safety and au

    Diesel is a type-safe database toolkit and object-relational mapper for Rust that enforces query correctness at compile time and provides robust schema migration and fluent querying capabilities.

    RustType-Safe Query BuildersDatabase Query BuildersQuery Builders
    View on GitHub↗14,021
  • aplus-framework/databaseaplus-framework avatar

    aplus-framework/database

    339View on GitHub↗

    This project is a database access layer for PHP that provides a consistent interface for interacting with multiple relational database management systems. It functions as a unified abstraction layer, enabling developers to connect to various SQL databases and perform data operations through a standardized command set. The library distinguishes itself by utilizing a fluent query builder that allows for the programmatic construction of complex SQL statements. It further abstracts database interactions through a schema definition language, which enables the creation, modification, and management

    This PHP database access layer provides a fluent query builder and schema management tools, making it a good fit for programmatic data interaction even though it lacks advanced type safety features.

    PHPDatabase Abstraction LayersFluent Query BuildersDatabase Query Builders
    View on GitHub↗339
  • stephencelis/sqlite.swiftstephencelis avatar

    stephencelis/SQLite.swift

    10,167View on GitHub↗

    SQLite.swift is a type-safe Swift wrapper and object-relational mapping layer that provides a bridge for interacting with SQLite databases. It functions as a database driver that allows for embedded database management and local data persistence within Swift applications. The project distinguishes itself through a type-safe expression builder that verifies SQL statement syntax and intent at compile time. It includes specialized support for high-performance text matching via full-text search integration and provides mechanisms for securing sensitive data through database encryption. The libra

    SQLite.swift is a type-safe object-relational mapping library for Swift that provides a fluent expression builder and schema migration support, though it is specifically tied to SQLite rather than being fully database-agnostic.

    SwiftDatabase MigrationsFluent Query BuildersRaw SQL Execution
    View on GitHub↗10,167
  • prisma/prisma-client-jsprisma avatar

    prisma/prisma-client-js

    1,465View on GitHub↗

    Prisma Client is a database client for Node.js and TypeScript applications that provides a type-safe interface for interacting with relational databases. It functions as an object-relational mapper that translates declarative schema definitions into strongly typed query interfaces, ensuring that database operations align with the underlying data structure. The library distinguishes itself by generating type definitions directly from a schema model, which enables static analysis and IDE autocompletion during development. By abstracting database interactions into a unified query language, it st

    Prisma Client provides a type-safe database client and query interface generated from a declarative schema, fitting the data access layer category well while omitting a built-in fluent query builder.

    TypeScriptDatabase Agnostic GeneratorsFluent Query BuildersType-Safe Query Builders
    View on GitHub↗1,465
  • prisma/prismaprisma avatar

    prisma/prisma

    46,366View on GitHub↗

    Prisma is a database toolkit that provides a unified access layer for interacting with relational and document databases. It centers on a declarative schema modeling approach, where developers define their data structures in a human-readable language. This schema serves as the single source of truth, from which the toolkit automatically generates type-safe database clients that provide compile-time validation and editor autocomplete for all data operations. The project distinguishes itself through a high-performance, Rust-based query engine that handles query planning and connection pooling o

    Prisma is a comprehensive object-relational mapping and database toolkit that provides type safety, schema migrations, and a fluent query interface across multiple database engines.

    TypeScriptType-Safe Query BuildersSchema Migration Tools
    View on GitHub↗46,366
  • knex/knexknex avatar

    knex/knex

    20,300View on GitHub↗

    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

    Knex provides a programmatic query builder and schema migration tool with multi-dialect support, though it operates as a query builder rather than a full object-relational mapping layer.

    JavaScriptFluent Query BuildersRaw SQL ExecutionDatabase Query Builders
    View on GitHub↗20,300
  • 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

    Sea-ORM is an asynchronous object-relational mapper and programmatic query builder for Rust that delivers type safety, multi-database support, schema migrations, and association handling right out of the box.

    RustDatabase MigrationsFluent Query BuildersRaw SQL Execution
    View on GitHub↗9,410
  • elixir-ecto/ectoelixir-ecto avatar

    elixir-ecto/ecto

    6,471View on GitHub↗

    Ecto is an Elixir database toolkit that maps database rows to Elixir structs and validates data changes through changesets before persistence. It provides a language-integrated query syntax for composing database queries, building them incrementally and securely with compile-time expansion into safe SQL. The toolkit connects to multiple database backends including PostgreSQL, MySQL, MSSQL, SQLite3, ClickHouse, and ETS through a pluggable adapter interface. It supports eager and lazy preloading of associated records to eliminate N+1 query problems, and can store nested data structures as embed

    Ecto is a comprehensive Elixir database toolkit and query builder that provides schema definitions, migrations, association handling, type safety through changesets, and multi-database support.

    ElixirDatabase Query BuildersMulti-Database Support
    View on GitHub↗6,471
  • sqlalchemy/sqlalchemysqlalchemy avatar

    sqlalchemy/sqlalchemy

    11,612View on GitHub↗

    SQLAlchemy is a comprehensive Python SQL toolkit and object-relational mapper that provides a full suite of tools for interacting with relational databases. It serves as a foundational layer for database connectivity, offering both a high-level object-oriented interface for data persistence and a programmatic SQL expression language for constructing complex, dialect-agnostic queries. The project distinguishes itself through its sophisticated unit of work persistence, which coordinates atomic transactions and tracks object state changes to minimize redundant database operations. It provides a

    SQLAlchemy is a comprehensive Python SQL toolkit and object-relational mapper that provides type safety, schema migration support, a fluent query builder, and robust handling for both associations and raw SQL.

    PythonObject-Relational Mapping AssociationsSQL Query Builders
    View on GitHub↗11,612
  • vincit/objection.jsVincit avatar

    Vincit/objection.js

    7,343View on GitHub↗

    Objection.js is an object-relational mapper for Node.js that maps SQL database tables to classes and rows to model instances. It functions as a high-level abstraction layer built on top of the Knex.js query builder to provide structured model definitions and relational data mapping. The project distinguishes itself through its ability to manage complex object graphs, allowing for the persistence and eager-loading of deeply nested related data in single operations. It incorporates a data integrity layer that uses JSON schema validation to verify model instances before they are persisted to the

    Objection.js is an object-relational mapper for Node.js built on top of Knex.js that provides robust relationship management, eager loading, and raw SQL support, though it lacks built-in schema migration tools.

    JavaScriptRaw SQL ExecutionDatabase Query BuildersObject-Relational Mapping Associations
    View on GitHub↗7,343
  • groue/grdb.swiftgroue avatar

    groue/GRDB.swift

    8,209View on GitHub↗

    GRDB.swift is a comprehensive SQLite toolkit and object-relational mapper for Swift. It provides a database wrapper that handles local data persistence, connection management, and encrypted file storage for Apple platforms. The library features a dedicated observation framework that tracks database changes to automatically synchronize the application state and user interface in real time. It distinguishes itself with a type-safe query builder and a protocol-based mapping system that converts database rows into structured Swift objects. The toolkit covers a broad range of administrative and o

    GRDB.swift is a comprehensive Swift SQLite toolkit and object-relational mapper that provides a type-safe query builder, schema migrations, raw SQL support, and association handling, though it is specifically tied to SQLite rather than being fully database-agnostic.

    SwiftRaw SQL ExecutionSchema MigrationsType-Safe Query Builders
    View on GitHub↗8,209
  • hibernate/hibernate-ormhibernate avatar

    hibernate/hibernate-orm

    6,447View on GitHub↗

    Hibernate ORM is a Java object-relational mapper and a full implementation of the Jakarta Persistence API. It serves as a SQL database abstraction layer that translates Java object models into relational database schemas to manage data persistence and lifecycles. The framework distinguishes itself with a multi-tenant data isolation framework for separating customer data within a single database instance. It also features a database schema generator that automatically produces and updates relational structures based on entity mappings. The system covers broad capability areas including transa

    Hibernate ORM is a comprehensive Java object-relational mapping and data persistence framework that squarely fits this category, offering robust support for schema generation, database abstraction, and association handling.

    JavaDatabase Abstraction Layers
    View on GitHub↗6,447
  • 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

    Bun is a type-safe object-relational mapper and SQL query builder for Go that supports multiple dialects and schema migrations, matching the core database interaction tools you are looking for.

    GoCustom SQL ExecutionFluent Query BuildersRaw SQL Execution
    View on GitHub↗4,867
  • ebean-orm/ebeanebean-orm avatar

    ebean-orm/ebean

    1,523View on GitHub↗

    Ebean is a Java object-relational mapping framework designed to simplify database persistence through automated query generation, schema migration, and transaction management. It uses metadata-driven mapping and bytecode enhancement to bridge the gap between application objects and relational database tables, providing a persistent layer that handles complex data interactions while maintaining consistency across unit-of-work boundaries. The framework distinguishes itself through its focus on developer productivity and performance optimization. It provides type-safe query builders that generat

    Ebean is a Java object-relational mapping framework that provides automated query generation, schema migration, and transaction management for database interaction.

    JavaRaw SQL ExecutionType-Safe Query BuildersType-Safe Query Construction
    View on GitHub↗1,523
  • ent/entent avatar

    ent/ent

    17,110View on GitHub↗

    Ent is a statically typed entity framework for Go that models database structures as a graph of nodes and edges. It functions as a code generation engine that transforms schema definitions into type-safe database clients, query builders, and migration scripts. By representing data as interconnected entities, the framework enables intuitive traversal of complex relationships and ensures that database interactions remain consistent with the application model at compile time. The framework distinguishes itself through its graph-based approach to data modeling and its reliance on compile-time cod

    Ent provides type-safe query building, code generation, and schema migration for Go, though it focuses specifically on a graph-based entity model rather than being a fully database-agnostic ORM.

    GoFluent Query BuildersType-Safe Query BuildersSchema Migration Tools
    View on GitHub↗17,110
  • doctrine/ormdoctrine avatar

    doctrine/orm

    10,172View on GitHub↗

    Doctrine ORM is a PHP object-relational mapper that connects application objects to relational database tables. It uses the data mapper and identity map patterns to decouple the in-memory object model from the database schema, allowing developers to manage data persistence without writing manual SQL. The project features a dedicated object-oriented query language and programmatic builder for retrieving data based on entities rather than tables. It implements a unit-of-work system to track object changes during a request and synchronize them via atomic transactions. The capability surface inc

    Doctrine ORM is a comprehensive PHP object-relational mapper and data persistence library that provides schema management, query building, and association handling for relational databases.

    PHPDatabase Abstraction Layers
    View on GitHub↗10,172
  • stephenafamo/bobstephenafamo avatar

    stephenafamo/bob

    1,739View on GitHub↗

    This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and automated code generation. It functions as a framework for type-safe database access, enabling developers to interact with relational databases by generating models and interfaces directly from existing database schemas. The toolkit distinguishes itself through a workflow that parses hand-written SQL files to generate type-safe functions, allowing for the integration of custom SQL while maintaining consistent result mapping. It supports modular customization through a plugin-based

    This Go database toolkit provides schema-to-object mapping, fluent query construction, and automated code generation, fitting the search for database interaction tools.

    GoFluent Query BuildersType-Safe Query ConstructionSQL Query Builders
    View on GitHub↗1,739
  • ormar-orm/ormarormar-orm avatar

    ormar-orm/ormar

    1,805View on GitHub↗

    Ormar is an asynchronous object-relational mapper for Python that integrates database persistence with data validation. It functions as a bridge between relational database management and application-level data structures, allowing developers to define database schemas that serve simultaneously as validation models. The project distinguishes itself by using validation classes to enforce schema integrity, ensuring that all persisted records conform to defined types and structures. It supports complex relational associations, including one-to-many and many-to-many relationships, and provides ev

    Ormar is an asynchronous Python object-relational mapper that bridges relational databases and Pydantic validation models, though it is tightly coupled to specific async drivers rather than being fully database agnostic.

    PythonObject-Relational Mapping AssociationsQuery Builders
    View on GitHub↗1,805
  • gaarason/database-allgaarason avatar

    gaarason/database-all

    1,033View on GitHub↗

    This project is a Java-based object-relational mapping framework that utilizes the active record pattern to simplify database interactions. It provides a comprehensive data access layer that binds database tables directly to application objects, enabling developers to perform CRUD operations, manage complex entity relationships, and execute queries through a fluent, type-safe interface. Designed for integration with Spring Boot, the framework abstracts database complexities while maintaining support for native compilation and asynchronous execution. The framework distinguishes itself through

    This framework is a Java-based object-relational mapping tool that provides an active record pattern with a fluent, type-safe query builder, association handling, and raw SQL support, though it lacks explicit mention of schema migration.

    JavaFluent Query BuildersRaw SQL ExecutionDatabase Query Builders
    View on GitHub↗1,033
  • doctrine/dbaldoctrine avatar

    doctrine/dbal

    9,699View on GitHub↗

    This project is a SQL database abstraction layer that provides a consistent object-oriented interface for interacting with multiple relational database systems. It includes a driver wrapper to standardize connections and result sets, a fluent query builder for constructing portable SQL statements, and a type mapper for converting database-specific data types into native application types and vice versa. The library enables programmatic schema management through a schema manager that can introspect database metadata, model structures as objects, and generate the SQL required to migrate between

    This library serves as a robust database abstraction layer with a query builder and schema management capabilities, fitting the data access layer category well despite being lower-level than a full ORM.

    PHPDatabase Abstraction LayersDatabase Agnostic GeneratorsSQL Query Builders
    View on GitHub↗9,699
  • baomidou/mybatis-plusbaomidou avatar

    baomidou/mybatis-plus

    17,391View on GitHub↗

    MyBatis-Plus is a persistence framework extension for Java that simplifies data access by reducing boilerplate code. It provides a toolkit for automating common database operations, utilizing dynamic query wrappers and a system for automated CRUD generation. The project distinguishes itself through a code generation system that produces mapper, model, service, and controller layers based on database metadata. It also implements a security layer that prevents SQL injection through input sanitization and blocks dangerous global update or delete operations to prevent accidental data loss. The f

    MyBatis-Plus is a Java persistence framework and query builder that extends MyBatis to automate CRUD operations and simplify database access with fluent wrappers, though it is tied to the MyBatis ecosystem rather than being fully database agnostic.

    JavaFluent Query BuildersSQL Query Builders
    View on GitHub↗17,391
  • pardom/activeandroidpardom avatar

    pardom/ActiveAndroid

    4,656View on GitHub↗

    ActiveAndroid is a persistence framework for managing local SQLite databases on Android. It provides an active record object-relational mapping system that binds database tables to classes, allowing for data persistence and retrieval without writing manual SQL. The project distinguishes itself through a dedicated schema migration tool that updates database structures using versioned scripts loaded from application assets. It also includes a framework for sharing database content between different Android applications via a standard URI-based content provider interface. The library covers bro

    ActiveAndroid is an active record persistence framework and object-relational mapper for Android SQLite databases, fitting the category well despite its platform-specific scope and lack of modern multi-platform database agnosticism.

    JavaObject-Relational Mapping AssociationsSchema Migration Tools
    View on GitHub↗4,656
  • go-pg/pggo-pg avatar

    go-pg/pg

    5,785View on GitHub↗

    pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent query builder for constructing SQL statements programmatically. At its core, it automatically generates CREATE TABLE statements from Go struct definitions using struct tags and naming conventions, and builds queries through method chaining with placeholder-based parameter binding to prevent SQL injection. The library distinguishes itself through relation-aware join generation that automatically constructs JOIN clauses for has-one, has-many, many-to-many, and polymorphic assoc

    This library provides object-relational mapping, fluent query building, and association handling for Go and PostgreSQL, though its limitation to a single database engine prevents it from being database agnostic.

    GoFluent Query BuildersFluent Query BuildersRaw SQL Execution
    View on GitHub↗5,785
  • dotnetcore/freesqldotnetcore avatar

    dotnetcore/FreeSql

    4,388View on GitHub↗

    FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for multiple relational database providers. It functions as a fluent SQL query builder and database schema synchronizer, allowing developers to align database table and index structures with entity class definitions. The framework is specifically optimized for .NET Native AOT to ensure reduced memory footprints and faster startup times. It includes a database traffic manager to distribute load through read-write splitting, dynamic table sharding, and tenant-based data isolation. Bro

    FreeSql is an object-relational mapper and data access layer for .NET that supports fluent query building and schema synchronization across multiple database providers, though it omits some specific advanced features requested.

    C#Fluent Query BuildersFluent Query BuildersRaw SQL Execution
    View on GitHub↗4,388
  • 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

    Drift is a type-safe SQL persistence library and relational mapper for Dart that offers programmatic query building and build-time validation, though it is specifically tailored to SQLite and PostgreSQL rather than being fully database agnostic.

    DartCustom SQL ExecutionFluent Query BuildersRaw SQL Execution
    View on GitHub↗3,231
  • tortoise/tortoise-ormtortoise avatar

    tortoise/tortoise-orm

    5,582View on GitHub↗

    Tortoise ORM is an asynchronous object-relational mapper for Python that mirrors Django's model and queryset API while running on asyncio. It defines database tables as Python classes with typed fields and supports foreign key, many-to-many, and one-to-one relations, providing a chainable query API for filtering, annotating, grouping, and prefetching related objects without blocking the event loop. The ORM includes a built-in migration engine that detects model changes, generates migration files, and applies or reverts schema changes through a command-line tool. It connects to PostgreSQL, MyS

    Tortoise ORM is an asynchronous object-relational mapper for Python that provides model definitions, chainable queries, schema migrations, and multi-database support, though it is limited to Python rather than being a database-agnostic tool across languages.

    PythonRaw SQL ExecutionSchema MigrationsMulti-Database Support
    View on GitHub↗5,582
  • mongodb/laravel-mongodbmongodb avatar

    mongodb/laravel-mongodb

    7,075View on GitHub↗

    This project is a MongoDB database driver and object-relational mapper that brings MongoDB support to the Laravel Eloquent model and query builder. It provides a NoSQL model mapper that allows MongoDB collections to be mapped to object-oriented models using the Active Record pattern. The integration enables the use of a fluent query builder for constructing queries and aggregation pipelines without writing raw database syntax. It supports schema-less model integration, allowing applications to manage unstructured data while maintaining compatibility with standard object-oriented patterns. Th

    This repository provides an object-relational mapper and query builder tailored for MongoDB within the Laravel framework, though its database-specific design prevents it from being a fully database-agnostic tool.

    PHPFluent Query Builders
    View on GitHub↗7,075
  • go-xorm/xormgo-xorm avatar

    go-xorm/xorm

    6,628View on GitHub↗

    xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries and maps database rows back into native objects, providing a multi-dialect database driver that supports MySQL, PostgreSQL, SQLite, Oracle, SQL Server, and TiDB. The project features a read-write splitting manager that routes modification requests to a primary database and read requests to replicas. It includes a database schema synchronizer to automatically align table structures and indexes with application data models, as well as a fluent SQL query builder for constructing co

    xorm is an object-relational mapping tool for Go that translates structures into SQL queries and handles schema synchronization across multiple dialects, though it is missing some advanced type-safety features.

    GoFluent Query BuildersRaw SQL Execution
    View on GitHub↗6,628
  • fastapi/sqlmodelfastapi avatar

    fastapi/sqlmodel

    18,137View on GitHub↗

    SQLModel is a type-safe object-relational mapping library for Python that integrates database schema definitions with data validation logic. By combining these two roles into a single class, it allows developers to manage relational data structures and enforce data integrity for web APIs simultaneously. The framework is built to support asynchronous database operations, enabling high-performance applications to execute queries and transactions without blocking the main execution thread. The library distinguishes itself by leveraging Python type hints to provide IDE autocompletion and compile-

    SQLModel is a type-safe object-relational mapping library for Python that provides schema validation and fluent querying atop SQLAlchemy, though it is tightly coupled to Pydantic rather than entirely database-agnostic.

    PythonType-Safe Query Builders
    View on GitHub↗18,137
  • jooq/jooqjOOQ avatar

    jOOQ/jOOQ

    6,666View on GitHub↗

    jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time validation of SQL syntax and data types. Its core identity is built around a fluent DSL that mirrors SQL structure, a code generator that maps tables, views, and routines to Java objects, and a multi-dialect engine that translates the same DSL into vendor-specific SQL for over 30 databases. The project also includes a SQL parser and transformer for refactoring or dialect conversion, reactive stream integration for non-blocking query execution, and a JDBC proxy diagnostics tool f

    jOOQ is a type-safe SQL query builder and database interaction library for Java that offers compile-time validation, schema-derived code generation, and multi-dialect support, though it focuses on a code-first SQL DSL rather than traditional entity-based ORM mapping.

    JavaType-Safe Query Builders
    View on GitHub↗6,666
  • beego/beegobeego avatar

    beego/beego

    32,398View on GitHub↗

    Beego is a high-performance toolkit for building web applications and RESTful APIs using the Go programming language. It is structured as an MVC web framework that separates data models, views, and controllers to organize application logic. The project provides a comprehensive suite of integrated tools, including an object-relational mapper for translating code objects into database tables and a session manager for maintaining user identity and state across server requests. It also includes an internationalization framework for managing multilingual content and translating text based on user

    Beego is a full-stack Go web framework that includes a built-in object-relational mapper alongside its MVC components, making it a broader application framework than a standalone database query tool.

    GoRESTful API DevelopmentWeb Development ToolkitsGo Web Frameworks
    View on GitHub↗32,398
  • bookshelf/bookshelfbookshelf avatar

    bookshelf/bookshelf

    6,352View on GitHub↗

    Bookshelf is a JavaScript ORM for Node.js that provides a structured way to define and interact with database models. It centers on a model-driven approach where developers register models, define their relations, and manage data persistence through a consistent interface. The library distinguishes itself through its comprehensive handling of model relationships and data transformations. It supports defining one-to-one, one-to-many, many-to-many, and polymorphic associations, with the ability to eager load related models in a single query to avoid performance pitfalls. Bookshelf also automate

    Bookshelf is a JavaScript object-relational mapper built for Node.js that handles model definitions, associations, and data persistence, making it a fitting tool for database interaction.

    JavaScriptCase-Conversion MappingsDatabase TransactionsEager Loading
    View on GitHub↗6,352
  • nreco/datanreco avatar

    nreco/data

    194View on GitHub↗

    Fast DB-independent DAL for .NET Core: abstract queries, SQL commands builder, schema-less data access, POCO mapping (micro-ORM).

    This lightweight .NET data access library provides abstract queries, SQL generation, and micro-ORM mapping for database interactions, though it lacks built-in schema migration and comprehensive type safety features.

    C#Object Relational Mapping
    View on GitHub↗194
  • encode/ormencode avatar

    encode/orm

    1,863View on GitHub↗

    An async ORM. 🗃

    This repository provides an asynchronous object-relational mapper for Python, which fits the database interaction category well although it lacks explicit details for some advanced features like schema migration and database agnosticism.

    PythonDatabase ORMs and ODMsORM Frameworks
    View on GitHub↗1,863
  • cycle/ormcycle avatar

    cycle/orm

    1,328View on GitHub↗

    PHP DataMapper, ORM

    Cycle ORM is a PHP data mapper and ORM that provides data access layers and programmatic querying, serving as a solid database interaction tool despite lacking some broader database-agnostic or schema-migration features.

    PHPDatabase Interaction
    View on GitHub↗1,328
  • magicalpanda/magicalrecordmagicalpanda avatar

    magicalpanda/MagicalRecord

    10,713View on GitHub↗

    MagicalRecord is a data persistence library and wrapper for Core Data that implements the Active Record pattern. It maps database rows directly to object instances, allowing for the creation, update, and retrieval of records without writing manual query logic. The project functions as a mapping layer that synchronizes object properties with a managed object context. It utilizes generic-based type resolution and model-class querying to enable data fetching directly on model classes, which removes the need for a separate external manager and reduces repetitive fetch request boilerplate. The li

    MagicalRecord is an object-relational mapping and data persistence library for Core Data that implements the Active Record pattern, offering fluent query capabilities and object-to-row mapping.

    Objective-CActive-Record ORMsActive Record PatternsActive Record Wrappers
    View on GitHub↗10,713
  • danieleteti/delphi-ormdanieleteti avatar

    danieleteti/delphi-orm

    175View on GitHub↗

    Delphi ORM (DORM for short) is a powerful ORM for Delphi. It is quite robust and tested because used since 2010 in production for many business critical systems.

    This repository provides an object-relational mapping solution tailored for Delphi, fulfilling the core database interaction requirement despite its niche language ecosystem.

    PascalDatabase Access and ORM
    View on GitHub↗175
  • bokwoon95/go-structured-querybokwoon95 avatar

    bokwoon95/go-structured-query

    201View on GitHub↗

    Type safe SQL query builder and struct mapper for Go

    This repository provides a type-safe SQL query builder and struct mapper for Go, covering query building and mapping features, though it is limited to specific SQL databases rather than being fully database agnostic.

    GoDatabase ToolsSQL Query Builders
    View on GitHub↗201
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
drizzle-team/drizzle-orm34.8KTypeScriptApache-2.0Jun 15, 2026
mybatis-flex/mybatis-flex2.6KJavaapache-2.0Feb 3, 2026
sequelize/sequelize30.3KTypeScriptMITJun 13, 2026
kysely-org/kysely14KTypeScriptMITJun 22, 2026
tgriesser/knex20.3KJavaScriptMITJun 17, 2026
seaql/sea-query1.7KRustNOASSERTIONJun 6, 2026
go-gorm/gorm39.8KGoMITMay 11, 2026
typeorm/typeorm36.5KTypeScriptMITJun 15, 2026
mikro-orm/mikro-orm9.1KTypeScriptMITJun 17, 2026
diesel-rs/diesel14KRustapache-2.0Feb 15, 2026

Related searches

  • ORMs, query builders and data access
  • a SQL query builder without a full ORM
  • an ORM and query builder for Go
  • an object relational mapper for PHP
  • an open source ORM for relational databases
  • a type-safe ORM for Python
  • an object relational mapper for C#
  • an ORM for .NET apps