Public
pomdtr avatar
pomdtr
sql
Script
SQL Template Tag Port of blakeembrey/sql-template-tag for usage in val.town. Usage import { sqlite } from "https://esm.town/v/std/sqlite" import { sql, zip } from "https://esm.town/v/pomdtr/sql" const query = sql`SELECT * FROM books WHERE author = ${author}`; console.log(query.sql) // => "SELECT * FROM books WHERE author = ?" console.log(query.args) // => [author] const res = await sqlite.execute(query) console.table(zip(res)) For advanced usage (ex: nesting queries), refer to the project readme .
6
stevekrouse avatar
stevekrouse
DenoSyntheticKV
Script
Replacement for Deno KV for Val Town on top of @std/sqlite.
1
mxdvl avatar
mxdvl
cities
HTTP
Retrieve a city for a given coordinates in the format [longitude, latitude] . An OPENCAGE_API_KEY variable is necessary and can be obtained for free on their website .
0
rwev avatar
rwev
pageEntriesDb
Script
An interactive, runnable TypeScript val by rwev
0
zicklag avatar
zicklag
weirdOneUptime
HTTP
Forked from stevekrouse/status
0
nicosql avatar
nicosql
assistantHarlequinKangaroo
Cron
Forked from sarahxc/slackScout
0
bootspoon avatar
bootspoon
uptime
Cron
Forked from stevekrouse/uptime
0
iamseeley avatar
iamseeley
valTownAnalytics
HTTP
Forked from maxm/valTownAnalytics
0
mattbrown avatar
mattbrown
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
alvi avatar
alvi
ownedGamesSchema
Script
Forked from alvi/SteamPlaytimeHistory_playHistorySchema
0
stevekrouse avatar
stevekrouse
sqlite_clone_migrate_table
Script
SQLite Migrate Table via cloning it into a new table example There are a lot of migrations that SQLite doesn't allow, such as adding a primary key on a table. The way to accomplish this is by creating a new table with the schema you desire and then copying the rows of the old table into it. This example shows how to: Get the schema for the existing table Create the new table Copy all rows from old to new Rename the old table to an archive (just in case) Rename the new table to the original table name This script shows me adding a primary key constraint to the Profile column of my DateMeDocs database. I would console and comment out various parts of it as I went. You can see everything I did in the version history. The main tricky part for me was removing the duplicate primary key entries before doing the migration step, which is a useful thing anyways, from a data cleaning perspective.
3
yawnxyz avatar
yawnxyz
luciaValtownSqlite
Script
A reorganization of: https://www.val.town/v/stevekrouse/lucia_adapter https://esm.town/v/stevekrouse/lucia_adapter_base
1
saolsen avatar
saolsen
lucia_hono
HTTP
// deno-lint-ignore-file no-namespace
1
austinm911 avatar
austinm911
scheduledNotifier
Cron
Forked from pranjaldotdev/poller
0
mjweaver01 avatar
mjweaver01
TodoApp
HTTP
Forked from stevekrouse/TodoApp
0
nicosql avatar
nicosql
liquidOrangeFowl
Cron
Forked from sarahxc/slackScout
0
Updated: April 3, 2024