1 个仓库
Database driver implementations for PostgreSQL within the Node.js runtime.
Distinguishing note: Shortlist candidates were focused on REST clients, SQLite drivers, or general Node.js runtime features.
Explore 1 awesome GitHub repository matching data & databases · PostgreSQL Node.js Clients. Refine with filters or upvote what's useful.
Slonik 是一个用于 Node.js 的类型安全 PostgreSQL 客户端,使用标记模板字面量(tagged template literals)来确保参数绑定并防止注入攻击。它提供了一个将应用连接到 PostgreSQL 的框架,并为查询和数据库模式提供自动类型检查。 该项目通过专门的 SQL 查询 Linter 脱颖而出,该 Linter 通过在开发过程中根据实时数据库模式验证代码,来检测无效列和类型不匹配。它还包括一个用于加载大数据集的高性能二进制批量数据插入器(使用原生二进制序列化),以及一个能够在主节点和副本节点之间进行动态查询路由的连接池管理器。 该库涵盖了广泛的数据库能力,包括原子事务管理、动态 SQL 查询构建,以及通过异步迭代流处理大数据集。它进一步提供了用于日志记录和基准测试的中间件拦截器、自定义类型解析,以及用于刷新数据库身份验证凭据的异步回调机制。
Provides a type-safe PostgreSQL driver for Node.js using tagged template literals.