4 个仓库
Programmatic construction of SQL statements using fluent APIs or arrays to ensure readability and security.
Distinct from SQL Query Execution: Distinct from SQL Query Execution: focuses on the construction of the statement rather than the act of running it.
Explore 4 awesome GitHub repositories matching data & databases · SQL Query Building. Refine with filters or upvote what's useful.
Medoo 是一个轻量级的 PHP 数据库抽象层和 SQL 查询构建器。它作为一个最小化的数据库包装器,提供了一个统一的 API 来跨多个 SQL 引擎执行查询,将 PHP 方法调用转换为特定的数据库方言。 该项目支持多方言 SQL 接口,允许单个代码库与包括 MySQL、MariaDB、PostgreSQL、SQLite、MSSQL、Oracle 和 Sybase 在内的各种后端进行交互。它使用预处理语句参数化来防止注入攻击,同时保持构建复杂 SQL 语句的程序化方法。 该工具包涵盖了标准的数据操作,包括记录插入、更新、删除和查询。它还提供了用于聚合计算、原子事务管理以及用于复杂逻辑的原始 SQL 执行的功能。 包含用于查询执行检查的诊断工具,允许记录生成的 SQL 和连接信息以进行调试。
Enables programmatic construction of complex SQL statements with prepared statements to prevent injection.
Slonik 是一个用于 Node.js 的类型安全 PostgreSQL 客户端,使用标记模板字面量(tagged template literals)来确保参数绑定并防止注入攻击。它提供了一个将应用连接到 PostgreSQL 的框架,并为查询和数据库模式提供自动类型检查。 该项目通过专门的 SQL 查询 Linter 脱颖而出,该 Linter 通过在开发过程中根据实时数据库模式验证代码,来检测无效列和类型不匹配。它还包括一个用于加载大数据集的高性能二进制批量数据插入器(使用原生二进制序列化),以及一个能够在主节点和副本节点之间进行动态查询路由的连接池管理器。 该库涵盖了广泛的数据库能力,包括原子事务管理、动态 SQL 查询构建,以及通过异步迭代流处理大数据集。它进一步提供了用于日志记录和基准测试的中间件拦截器、自定义类型解析,以及用于刷新数据库身份验证凭据的异步回调机制。
Facilitates the programmatic construction of secure SQL statements using fluent APIs and parameter binding.
Bun 是一个 Go 语言的类型安全对象关系映射器(ORM),优先考虑 SQL 优先的查询构建和结果映射。它作为一个可编程 SQL 查询构建器、数据库连接管理器以及将数据库表映射到 Go 结构体的工具。 该项目通过多方言 SQL 支持系统脱颖而出,允许单个代码库通过一致的接口与不同的数据库引擎交互。它包括一个用于查询拦截、分布式跟踪和日志记录的内置数据库可观测性工具,以及一个用于版本化结构变更的模式迁移工具。 该库涵盖了广泛的数据操作,包括批量处理、Upsert、软删除以及多态关联等关系数据的管理。它提供使用公用表表达式(CTE)和窗口函数进行高级 SQL 分析的功能,以及原子事务管理和连接池。 模式管理通过用于应用版本化迁移脚本的命令行界面支持。
Provides a programmable fluent API for the incremental construction of complex SQL statements.
This project is a PHP library designed for parsing, beautifying, and syntax-highlighting SQL queries. It provides a set of utilities to improve the readability of database code, facilitate debugging, and assist in the maintenance of complex query structures. The library distinguishes itself by offering both aesthetic and functional processing capabilities. It can transform raw SQL strings into structured, indented formats for human review, or compress them by removing comments and unnecessary whitespace to optimize them for network transmission and logging. Additionally, it includes a syntax
Improves the visual structure of complex database queries through automatic indentation and formatting.