Run the PQL compiler in 15+ programming languages, using Extism Host SDKs.
See more: https://extism.org
Download the compiled main.wasm
module from Modsurfer, or build it using TinyGo or Go.
tinygo build -o main.wasm -target wasi main.go
Next, try calling it using the extism
CLI:
cat example.pql | extism call main.wasm compile --stdin --wasi
SELECT * FROM "StormEvents" WHERE ("DamageProperty" > 5000) AND (coalesce("EventType" = 'Thunderstorm Wind', FALSE)) ORDER BY "DamageProperty" DESC NULLS LAST LIMIT 3;
Extism enables many languages to make calls to Wasm functions, and thus PQL could be used to generate SQL from virtually any application. See all the available Host SDKs where you can run PQL using Extism: