A serverless edge worker embedding SQLite using Cloudflare Workers and WASM.
Check out the source on GitHub and/or follow me on Twitter.
The data used in production is a reduced version (only EUR, JPY, GBP and CHF currencies) of the European Central Bank Forex Rates on Humdata. It is distributed under the license CC-BY.
SELECT *,1/EUR,1/JPY,1/GBP,1/CHF
FROM forex
WHERE
GBP = (
SELECT
max(GBP)
FROM forex)
OR GBP = (
SELECT
min(GBP)
FROM forex)
SELECT
getdata('country') AS country,
random() AS rnd,
date('now') AS now
Result will be printed here
Duration of the query: NA