#udf #wasm #open-gauss

macro opengauss_bindgen_macros

Rust macros for writing WebAssembly-powered user-defined functions for openGauss

1 unstable release

0.1.0 May 18, 2023

#7 in #open-gauss


Used in opengauss_bindgen

MIT/Apache

7KB
100 lines

Intro

This repository contains a helper library for coding WebAssembly-powered user-defined functions for openGauss.

*[note]: This repository is forked and modified based on libsql_bindgen

  • Show respect to Piotr Sarna

Marking a native Rust function with #[opengauss_bindgen] macro and compiling it to wasm32-unknown-unknown target is enough to produce a user-defined function definition callable directly from openGauss

Try it yourself:

cd examples/encrypt_decrypt
./gen_wasm.sh 

There are also advanced examples that require WasmEdge to run:

Dependencies

~1.5MB
~36K SLoC