Public
Script
neverstew avatar
migrate
@neverstew
Script
Val Town Migrations By calling this val, you can easily handle migrations in your Val Town Turso Database. Getting started Make sure you have your Val Town API Token saved in your secrets. See more about authentication to understand how to generate a token. Make sure you've set up your turso database 👆Fork this val How it works Each time the val is run, a new migration will be created and tracked in your database in the migrations table. There will be one migration per val, per version. You can do anything you want in the function passed to migrate ; create or alter tables, populate data... whatever! Migrating backwards Vals don't have the concept of decreasing versions and neither does this migration tool. Made a mistake? Write a new version of your val to fix it!
mxdvl avatar
vals
@mxdvl
HTTP (deprecated)
A val to list other vals, very meta! You’re likely viewing this page generated from this very val… fork your own! Until folder sharing is supported, this may be the best way to point to specific vals?
iamseeley avatar
HonoHTMX
@iamseeley
HTTP (deprecated)
Forked from mxdvl/vals
websandbox avatar
createAPI
@websandbox
HTTP (deprecated)
An interactive, runnable TypeScript val by websandbox
neverstew avatar
aliasExample
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
neverstew avatar
aliasValExample
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
stevekrouse avatar
getCurrentValVersionNumber
@stevekrouse
Script
* @param {string} valSlug - ie "username/valname"
websandbox avatar
cleanup
@websandbox
Cron
An interactive, runnable TypeScript val by websandbox
1
Next
October 23, 2023