Created
August 28, 2019 14:29
-
-
Save Hywan/4e528227a54b459134424e8d04b7e718 to your computer and use it in GitHub Desktop.
Postgres WebAssembly usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- New instance of the `simple.wasm` WebAssembly module. | |
SELECT wasm_new_instance('/absolute/path/to/simple.wasm', 'ns'); | |
-- Call a WebAssembly exported function! | |
SELECT ns_sum(1, 2); | |
-- ns_sum | |
-- -------- | |
-- 3 | |
-- (1 row) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment