Public
Readme
Kysely type generator for @std/sqlite
- Fork to your account.
- Update allowedTables to expose any tables you'd like to import the schema of.
This will make their schemas public! - Add
import type { DB } from "https://yourusername-kyselyVtTypes.web.val.run/?tables=tables,you,need" to your program. See that
QueryParams` type at the top? Add those to your URL to set more options.
See @easrng/kyselyVtDemo.
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
easrng-kyselyvttypes.web.val.run
Updated: April 1, 2024
Quick thought, you could protect your types behind a password.
You just need to implement bearer token authentication in the vals, and use the private module mechanism: https://www.val.town/settings/private-modules
That was what I did initially but the editor doesn't respect the private module settings.