2 个仓库
Safe Rust bindings to PostgreSQL's Server Programming Interface for executing SQL queries from within extension code.
Distinct from Database Query Interfaces: Distinct from Database Query Interfaces: focuses on PostgreSQL's internal SPI for extensions, not general database query tools.
Explore 2 awesome GitHub repositories matching data & databases · Server Programming Interfaces. Refine with filters or upvote what's useful.
pgx 是一个用于使用 Rust 语言开发高性能 PostgreSQL 扩展的框架和工具套件。它提供了一个底层 API 包装器,用于与内部数据库内存上下文、日志系统和核心执行 API 进行交互,从而能够直接在数据库引擎内实现自定义的数据库功能和逻辑。 该项目的特色在于其专用的构建工具和命令行接口,用于管理从环境初始化到二进制打包的扩展开发生命周期。它包含一个类型映射器,可将语言结构转换为数据库复合类型,并自动生成相应的 SQL 模式定义。 该框架涵盖了广泛的功能面,包括用户定义函数映射、二进制协议集成,以及多版本目标支持,以确保跨不同数据库版本的兼容性。它还提供了专门的内存管理包装器来处理指针并防止数据库环境中的内存泄漏。
Provides safe Rust bindings to the PostgreSQL Server Programming Interface for executing queries from within extensions.
pgrx is a framework for building and packaging custom PostgreSQL extensions using Rust. It serves as a foreign function interface bridge that maps Rust types and functions to the internal server programming interface of the database. The project provides a specialized toolchain for cross-compilation across different operating systems and target architectures using custom sysroots. It includes a schema generator that automatically translates high-level language structures into SQL definitions and binary protocol mappings. The framework manages memory safety by wrapping database memory context
Executes SQL queries safely from within extensions using a managed Server Programming Interface.