12 个仓库
Libraries that map relational database tables to native language objects and generate SQL queries from application structures.
Distinct from Node.js SQL ORMs: None of the candidates are generic Go ORM categories; most are either too specific (Node.js) or for different purposes (mocking).
Explore 12 awesome GitHub repositories matching data & databases · SQL ORMs. Refine with filters or upvote what's useful.
CakePHP 是一个 PHP Web 框架,专为快速开发功能齐全的 Web 应用程序而设计。它利用模型-视图-控制器(MVC)架构来分离业务逻辑、数据模型和用户界面。 该框架包括一个内置的对象关系映射器(ORM),允许在不编写原始 SQL 查询的情况下检索和存储关系数据。它采用“约定优于配置”的方法,通过为文件和数据库表假设标准命名方案来减少样板代码。 该项目提供了用于实现具有集成验证和处理逻辑的 Web 表单的工具。其架构包含一个用于管理应用程序服务的依赖注入容器,以及一个用于处理传入 HTTP 请求的基于中间件的请求流水线。
Provides a PHP-based SQL ORM to map database tables to native objects.
pysheeet 是一个技术参考库,提供了一系列精选的代码片段和实现模式,用于高级 Python 开发、系统集成和高性能计算。它充当实现底层网络编程、原生 C 扩展以及异步和并发编程的综合指南。 该项目为大语言模型的开发和部署提供了专门的框架,包括用于分布式 GPU 推理和高性能服务的工具。它还包括用于高性能计算集群编排的详细模式,涵盖 GPU 资源分配和多节点工作负载管理。 该库涵盖了广泛的功能,包括安全网络通信和加密、对象关系映射和数据库管理,以及复杂数据结构和算法的实现。它还提供用于内存管理、通过外部函数接口(FFI)进行原生互操作以及系统级 OS 集成的实用程序。
Provides patterns for libraries that map relational database tables to native language objects.
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
Acts as a full-featured relational mapper translating Go structures into SQL queries and vice versa.
SqlSugar is an object-relational mapping library for .NET that translates C# and VB objects into database queries and tables without requiring raw SQL. It is designed as a multi-database ORM supporting SQL Server, MySQL, PostgreSQL, Oracle, MongoDB, ClickHouse, and other databases through a unified API, and it is compatible with .NET AOT compilation for native ahead-of-time deployment. The library distinguishes itself through high-speed bulk data operations that can insert or update millions of records in seconds using batch processing instead of row-by-row handling. It also provides multi-te
Supports SQL Server, MySQL, PostgreSQL, Oracle, MongoDB, and ClickHouse through a unified API.
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
Maps Go structs to PostgreSQL tables and builds SQL queries via a fluent ORM API.
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
Defines database tables as Python classes and queries them with an object-oriented API mirroring Django's syntax.
SuperduperDB 是一个 AI Agent 编排器和数据库集成式机器学习平台。它通过将大语言模型直接与数据库后端集成,为构建有状态 AI Agent 和检索增强生成(RAG)应用提供了一个框架。 该项目支持部署自托管 AI 基础设施,并利用本地检查点在私有硬件上管理语言模型。其独特之处在于允许用户将 AI 组件直接附加到数据字段上,从而根据数据库的插入和更新操作触发模型执行及自动化转换。 该平台涵盖了广泛的功能,包括用于训练和微调的机器学习编排、用于多模态检索的向量搜索集成,以及支持多种 SQL 和 NoSQL 存储引擎的后端无关数据层。它还提供了用于声明式工作流编排和打包可复用 AI 应用的工具。 该系统使用 Python 实现,并为与多个数据库后端交互提供了统一的 API。
Provides a unified API that abstracts SQL and NoSQL dialects across multiple database providers.
Bun 是一个 Go 语言的类型安全对象关系映射器(ORM),优先考虑 SQL 优先的查询构建和结果映射。它作为一个可编程 SQL 查询构建器、数据库连接管理器以及将数据库表映射到 Go 结构体的工具。 该项目通过多方言 SQL 支持系统脱颖而出,允许单个代码库通过一致的接口与不同的数据库引擎交互。它包括一个用于查询拦截、分布式跟踪和日志记录的内置数据库可观测性工具,以及一个用于版本化结构变更的模式迁移工具。 该库涵盖了广泛的数据操作,包括批量处理、Upsert、软删除以及多态关联等关系数据的管理。它提供使用公用表表达式(CTE)和窗口函数进行高级 SQL 分析的功能,以及原子事务管理和连接池。 模式管理通过用于应用版本化迁移脚本的命令行界面支持。
Functions as a type-safe object relational mapper for Go, prioritizing SQL-first construction and result mapping.
这是一个使用 Flask 构建的全栈 Web 应用程序模板。它为开发完整的 Web 应用程序提供了基础,涵盖了从用户界面和服务器端逻辑到关系数据管理的整个流水线。 该项目使用蓝图(blueprints)实现模块化架构,将视图和模板组织成独立的组件。它具有一个基于会话的身份验证系统,用于管理用户注册、密码哈希和安全登录会话,以保护私有应用程序区域。 数据持久性通过用于管理模式的对象关系映射器(ORM)和用于版本化数据库迁移的集成系统来处理。该项目还包括一个带有单元测试和代码覆盖率工具的自动化测试套件,以验证应用程序逻辑。 该模板包括用于云应用程序托管的配置,包括生产环境中环境变量和数据库连接的管理。
Includes a SQL ORM to map relational database tables to Python objects for easier data management.
FreeSql 是一个 .NET 对象关系映射器(ORM)和数据访问层,可将面向对象的代码转换为适用于多种关系型数据库提供程序的 SQL。它作为一个流畅的 SQL 查询构建器和数据库架构同步器,允许开发者将数据库表和索引结构与实体类定义保持一致。 该框架专门针对 .NET Native AOT 进行了优化,以确保更小的内存占用和更快的启动时间。它包含一个数据库流量管理器,通过读写分离、动态分表和基于租户的数据隔离来分配负载。 其广泛的功能包括使用特定于提供程序的批量复制机制实现高性能数据摄入,利用窗口函数和递归 CTE 进行高级查询,以及基于 AOP 的数据变更审计监控。该系统还提供用于自动迁移的架构管理工具,以及用于从数据库元数据生成实体类的开发实用程序。
Supports multiple database backends through a unified API, abstracting SQL dialects behind a common interface.
Gorp is a lightweight object-relational mapper for Go that binds structs to relational database tables. It functions as a relational data mapper and SQL dialect abstraction layer, automating the translation between application data and relational rows. The project provides a translation layer that generates vendor-specific SQL for PostgreSQL, MySQL, SQLite, Oracle, and SQL Server. It distinguishes itself by implementing optimistic locking via version columns to prevent concurrent update conflicts and providing a database schema generator to create tables and indexes from object definitions.
Implements a lightweight object-relational mapper that binds Go structs to relational database tables.
Gauzy is an open business management platform and multi-tenant enterprise resource planning system. It provides a modular business framework designed to manage core organizational operations through a unified web interface or as a headless business API. The platform is distinguished by its integration with the Model Context Protocol, allowing it to act as a server that exposes business data and system functions as tools for AI assistants. It utilizes a dynamic plugin architecture and a dedicated marketplace to extend core business entities and services. The system covers a broad range of ope
Executes data queries and manipulations using SQL ORM patterns to map tables to objects.