3 个仓库
Programmatic tools for building SQL queries within Node.js, distinct from full ORM mapping.
Distinct from Node.js SQL ORMs: Focuses on programmatic query construction rather than full object-relational mapping (ORM) patterns.
Explore 3 awesome GitHub repositories matching data & databases · SQL Query Builders. Refine with filters or upvote what's useful.
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
Provides a programmatic JavaScript interface for generating SQL queries without writing raw SQL strings.
JSqlParser 是一个 Java SQL 查询解析库,将原始 SQL 字符串转换为强类型 Java 对象的结构化层级。它通过将数据库查询表示为对象树,提供了程序化分析和操作数据库查询的方法。 该库支持解析现有 SQL 文本以及通过流畅 API 程序化生成新语句。它包括转换查询树并将结构化对象模型序列化回格式化 SQL 文本的机制。 其他功能包括数据库模式分析(例如提取表名以映射数据依赖关系)和 SQL 语法验证。该解析器可配置以处理不同的语法方言,并包括容错恢复功能,以便在遇到无效标记后继续处理脚本。
Provides a programmatic tool for building SQL queries using a fluent API.
Slonik 是一个用于 Node.js 的类型安全 PostgreSQL 客户端,使用标记模板字面量(tagged template literals)来确保参数绑定并防止注入攻击。它提供了一个将应用连接到 PostgreSQL 的框架,并为查询和数据库模式提供自动类型检查。 该项目通过专门的 SQL 查询 Linter 脱颖而出,该 Linter 通过在开发过程中根据实时数据库模式验证代码,来检测无效列和类型不匹配。它还包括一个用于加载大数据集的高性能二进制批量数据插入器(使用原生二进制序列化),以及一个能够在主节点和副本节点之间进行动态查询路由的连接池管理器。 该库涵盖了广泛的数据库能力,包括原子事务管理、动态 SQL 查询构建,以及通过异步迭代流处理大数据集。它进一步提供了用于日志记录和基准测试的中间件拦截器、自定义类型解析,以及用于刷新数据库身份验证凭据的异步回调机制。
Provides a tool for constructing composable SQL fragments with build-time and runtime schema validation.