{"repo":"zouwei/onela","free":true,"listed":false,"github":"https://github.com/zouwei/onela","clone":"git clone https://github.com/zouwei/onela.git","description":"Onela ORM 一套业务代码无缝接入多种类型数据库。","language":"TypeScript","stars":78,"topics":["mysql","onela","orm","orm-framework","database","sql","postgresql","postgre","mysql-database","sqlite"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"Onela ORM 世界级自适应关系型数据库热切换 ORM 框架，一套业务代码无缝接入 9+ 种数据库。 特性 - 9+ 数据库支持 - MySQL / MariaDB / TiDB / PostgreSQL / SQLite / SQL Server / Oracle / OceanBase / PolarDB - 热切换 - 运行时无缝切换数据库连接，零停机 - 读写分离 - 自动路由读写请求，支持 4 种负载均衡策略 - 故障转移 - 自动检测故障节点并切换，支持健康检查 - 5 种查询模式 - 简单对象 / 操作符函数 / 链式构建 / Lambda 表达式 / 传统模式 - Schema 管理 - DDL 构建、结构自省、迁移运行、动态 Model 注册 - 安全体系 - SQL 注入防护 / 操作白名单 / 审计日志 / 行级限制 / 字段级访问控制 - AI 友好 - 动态 Model、结构描述、元数据查询，为 AI 数据库管理场景设计 - TypeScript 原生 - 完整类型定义，100% Tree-shakable 安装 安装数据库驱动（按需选择）： 快速开始 1. 初始化 2. 定义 Model 3. CRUD 操作 5 种查询模式 模式 1：简单对象 模式 2：操作符函数 模式 3：链式构建 模式 4：Lambda 表达式 模式 5：传统模式 高级功能 事务 JOIN 查询 子查询 聚合查询 复杂更新 (CASE WHEN) 原生 SQL Schema 管理 DDL 构建 数据库自省 迁移管理 动态 Model（AI 场景） 安全体系 SQL 注入防护 操作白名单 审计日志 行级限制 字段级访问控制 连接路由 读写分离 & 负载均衡 错误处理 元数据查询 数据库支持矩阵 数据库 类型标识 驱动 V2 适配器 -------- --------- ------ ---------- MySQL 5.7+ / 8.0+ mysql mysql2 MySQLActionManagerV2 MariaDB 10.x+ mariadb mysql2 MySQLActionManagerV2 TiDB tidb mysql2 MySQLActionManagerV2 OceanBase oceanbase mysql2 MySQLActionManagerV2 PolarDB polardb mysql2 MySQLActionManagerV2 PostgreSQL 10+ postgresql pg PostgreSQLActionManagerV2 SQLite 3.x sqlite sqlite3 SQLiteActionManagerV2 SQL Server 2012+ sqlserver tedious SQLServerActionManagerV2 Oracle 11g+ oracle oracledb OracleActionManagerV2 条件操作符 操作符 说明 示例值 ------- ------ ------- = 等于 1 = 比较 18 in / not in 集合 [1, 2, 3] between / not between 范围 [1, 100] %% 全模糊 LIKE '%v%' 'test' % 左模糊 LIKE '%v' 'test' x% 右模糊 LIKE 'v%' 'test' like / not like LIKE '%test%' is / is not NULL 判断 'N","default_branch":null,"files":null,"tree":[],"storefront":"/r/zouwei","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zouwei/onela/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}