pgxr使用 Rust 开发 PostgreSQL 扩展函数
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 存储过程
评论
Slick-pgSlick 的 PostgreSQL 扩展
Slick-pg是一些针对PostgreSQL的Slick扩展,用于支持PostgreSQL的(特有)类型及/或相关函数。如果你对使用 Slick 来开发基于PostgreSQL的程序感兴趣,那么你会
Slick-pgSlick 的 PostgreSQL 扩展
0
Slick-pgSlick 的 PostgreSQL 扩展
Slick-pg 是一些针对 PostgreSQL 的 Slick 扩展,用于支持 PostgreS
Slick-pgSlick 的 PostgreSQL 扩展
0
PHPER Framework用纯 Rust 开发 PHP 扩展
这是一个支持用纯Rust开发PHP扩展的框架,可以有效利用Rust生态,主要是对ZendAPI的封装。PHPER的意思是PHPEnjoyRust。文档https://docs.rs/phper教程ht
PHPER Framework用纯 Rust 开发 PHP 扩展
0
PHPER Framework用纯 Rust 开发 PHP 扩展
这是一个支持用纯 Rust 开发 PHP 扩展的框架,可以有效利用Rust生态,主要是对Zend A
PHPER Framework用纯 Rust 开发 PHP 扩展
0
VisualRustVisual Studio 的 Rust 扩展
VisualRust 是 Visual Studio 集成开发环境对 Rust 编程语言的支持扩展。
VisualRustVisual Studio 的 Rust 扩展
0
VisualRustVisual Studio 的 Rust 扩展
VisualRust是VisualStudio集成开发环境对Rust编程语言的支持扩展。当前提供语法高亮和智能代码缩进。支持VisualStudio2013
VisualRustVisual Studio 的 Rust 扩展
0