- 授权协议: 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 存储过程
The Java Language Specification, Java SE 7 Edition
James Gosling、Bill Joy、Guy L. Steele Jr.、Gilad Bracha、Alex Buckley / Addison-Wesley Professional / 2013-2-24 / USD 59.99
Written by the inventors of the technology, The Java(r) Language Specification, Java SE 7 Edition, is the definitive technical reference for the Java programming language. The book provides complete, ......一起来看看 《The Java Language Specification, Java SE 7 Edition》 这本书的介绍吧!
