Example: val town leaderboard
Create valimport { zip } from "https://esm.town/v/pomdtr/sql"; import { db } from "https://esm.town/v/sqlite/db"; const res = await db.execute("SELECT author_username, COUNT(*) AS val_count FROM vals GROUP BY author_username ORDER BY 2 DESC LIMIT 10"); console.table(zip(res));
https://sqlite-db.web.val.run
https://esm.town/v/sqlite/db
<script type="module" src="https://esm.town/v/sqlite/db" />