- 授权协议: BSD
- 开发语言: Rust
- 操作系统: 跨平台
- 软件首页: https://github.com/clia/pgxr
- 软件文档: https://github.com/clia/pgxr/blob/master/README.md
- 官方下载: https://github.com/clia/pgxr
软件介绍
pgxr —— 使用 Rust 开发 PostgreSQL 扩展函数(存储过程)
pgxr 是一个 Rust 的 crate 库,可以实现用 Rust 语言来编写 PostgreSQL 的扩展函数(相当于存储过程)。
代码示例:
#[macro_use]
extern crate pgxr;
use pgxr::bindings::*;
PG_MODULE_MAGIC!();
PG_FUNCTION_INFO_V1!(pg_finfo_pgxr_example_one);
#[no_mangle]
pub extern "C" fn pgxr_example_one(_fcinfo: FunctionCallInfo) -> Datum
{
1
}使用方法:
CREATE FUNCTION pgxr_example_one(integer) RETURNS integer AS 'libpgxr_example_one.so', 'pgxr_example_one' LANGUAGE C STRICT;
使用 Rust 开发 PostgreSQL 存储过程
RESTful Web Services Cookbook中文版
Subbu Allamaraju / 丁雪丰、常可 / 电子工业出版社 / 2011-9 / 59.00元
RESTful Web Services Cookbook中文版:REST最佳实践手册,ISBN:9787121143908,作者:(美)Subbu Allamaraju(沙布·阿拉马拉尤)著,丁雪丰,常可 译一起来看看 《RESTful Web Services Cookbook中文版》 这本书的介绍吧!
