Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/?q=database&page=283&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=database

Returns an array of strings in format "username" or "username/projectName"

Found 2874 results for "database"(834ms)

valleGetValsContextWindowmain.tsx1 match

@stevekrouse•Updated 9 months ago
105 {
106 name: "Use Val Town SQLite to store data",
107 prompt: "Write a val that uses an SQLite database",
108 code: `import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
109

infiniteSVGGraphmain.tsx1 match

@maxm•Updated 9 months ago
33// }
34
35// Database querying.
36
37function parseResultSet<T>(row: ResultSet): T[] {

amaranthTakinREADME.md2 matches

@stevekrouse•Updated 12 months ago
9## Contributing
10
11Forking this repo should mostly work, except for the sqlite database. You'll need to create the table & populate it with some data. [This script](https://www.val.town/v/stevekrouse/dateme_sqlite) *should* do it, but I think it has a couple bugs. If you're interested in contributing to this project contact me or comment on this val and I'll get it working for ya!
12
13## Todos
14
15- [ ] Make the SQLite database forkable and build a widget/workflow for that, ie fix @stevekrouse/dateme_sqlite
16- [ ] Require an email (that isn't shared publicly)
17 - [ ] Verify the email address with a "magic link"

passkeys_demomain.tsx1 match

@stevekrouse•Updated 1 year ago
33}
34
35// DATABASE
36const kv = new DenoSyntheticKV("passkeys_example");
37

plantsmain.tsx1 match

@stevekrouse•Updated 1 year ago
4import humanizeDuration from "npm:humanize-duration";
5
6// Initialize the SQLite database and create the waterings table
7sqlite.execute(`
8 CREATE TABLE IF NOT EXISTS waterings (

jadeOpossumREADME.md2 matches

@tmcw•Updated 1 year ago
9## Contributing
10
11Forking this repo should mostly work, except for the sqlite database. You'll need to create the table & populate it with some data. [This script](https://www.val.town/v/stevekrouse/dateme_sqlite) *should* do it, but I think it has a couple bugs. If you're interested in contributing to this project contact me or comment on this val and I'll get it working for ya!
12
13## Todos
14
15- [ ] Make the SQLite database forkable and build a widget/workflow for that, ie fix @stevekrouse/dateme_sqlite
16- [ ] Require an email (that isn't shared publicly)
17 - [ ] Verify the email address with a "magic link"

datemeREADME.md2 matches

@tmcw•Updated 1 year ago
9## Contributing
10
11Forking this repo should mostly work, except for the sqlite database. You'll need to create the table & populate it with some data. [This script](https://www.val.town/v/stevekrouse/dateme_sqlite) *should* do it, but I think it has a couple bugs. If you're interested in contributing to this project contact me or comment on this val and I'll get it working for ya!
12
13## Todos
14
15- [ ] Make the SQLite database forkable and build a widget/workflow for that, ie fix @stevekrouse/dateme_sqlite
16- [ ] Require an email (that isn't shared publicly)
17 - [ ] Verify the email address with a "magic link"

sqlite_clone_migrate_tableREADME.md1 match

@stevekrouse•Updated 1 year ago
115. Rename the new table to the original table name
12
13This 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.
14
15Migrated from folder: Archive/sqlite_clone_migrate_table

harlequinEmuREADME.md1 match

@stevekrouse•Updated 1 year ago
30- [ ] add triggers to sidebar
31- [ ] add upload from SQL, CSV and JSON
32- [ ] add ability to connect to a non-val town Turso database
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable

salmonCrabREADME.md1 match

@stevekrouse•Updated 1 year ago
30- [ ] add triggers to sidebar
31- [ ] add upload from SQL, CSV and JSON
32- [ ] add ability to connect to a non-val town Turso database
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable

yc_database

@stevekrouse•Updated 5 months ago

dateMeNotionDatabase2 file matches

@stevekrouse•Updated 1 year ago