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/$%7Bart_info.art.src%7D?q=database&page=369&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 3893 results for "database"(939ms)

sqlitemain.tsx1 match

@maxm•Updated 8 months ago
5/**
6 * Every Val Town account comes with its own private
7 * [SQLite database](https://www.sqlite.org/) that
8 * is accessible from any of your vals.
9 * ([Docs ↗](https://docs.val.town/std/sqlite))

sqliteExplorerAppREADME.md1 match

@axelknock•Updated 8 months 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

sqliteExplorerAppREADME.md1 match

@tempdev•Updated 8 months 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

notionRecurringTasksmain.tsx4 matches

@ciebiada•Updated 8 months ago
3import dayjs from "npm:dayjs";
4
5const DATABASE_ID = "519446a0d3ed47038fffd669b9ece770";
6const notion = new Client({ auth: process.env.NOTION_API_KEY });
7
13
14export default async function(interval: Interval) {
15 const response = await notion.databases.query({
16 database_id: DATABASE_ID,
17 filter: {
18 and: [
40
41 const nextItem = {
42 parent: { database_id: DATABASE_ID },
43 properties: {
44 ...item.properties,

bloodyOliveMolluskREADME.md1 match

@mmorihara•Updated 8 months ago
1WIP SQLite graph database based on https://github.com/dpapathanasiou/simple-graph

TokenDBmain.tsx3 matches

@peterqliu•Updated 8 months ago
26 }
27
28 // generate a new random token, and saves it to the database
29 async generateToken(email: string): Promise<string> {
30 const { options: { tokenBytes, validDuration } } = this;
43 }
44
45 // check a token against the database that it's valid and not expired
46 // a valid match will return the id on record
47 // an expired match will return null
69 }
70
71 // remove expired/unclaimed tokens from the database. run this periodically to keep lookups fast
72 cull() {
73 this.deleteRows(`expires < ${this.now()}`);

featureflagsREADME.md1 match

@fmac•Updated 8 months ago
34# How it works
35
36This val works by hashing the `userId` and using the resulting value to determine whether a flag should be enabled or disabled. In a 50% rollout, for example, the numeric hash of the `userId` is taken and divided by the maximum hash value. If the result is less than the rollout percentage, the flag is enabled. This allows for completely stateless feature flags, no database required.
37
38To prevent the same users getting features first all of the time, the flag name is prepended to the `userId` before hashing.

tenseRoseTiglonREADME.md1 match

@MichaelNollox•Updated 8 months ago
1# VALL-E
2
3LLM code generation for vals! Make apps with a frontend, backend, and database.
4
5It's a bit of work to get this running, but it's worth it.

VALLEREADME.md1 match

@MichaelNollox•Updated 8 months ago
1# VALL-E
2
3LLM code generation for vals! Make apps with a frontend, backend, and database.
4
5It's a bit of work to get this running, but it's worth it.

blobmain.tsx1 match

@nichoth•Updated 8 months ago
8import { ValTownBlobNotFoundError } from "https://esm.town/v/std/ValTownBlobNotFoundError";
9
10// Initialize the database
11await sqlite.execute(`
12 CREATE TABLE IF NOT EXISTS blobs (

bookmarksDatabase

@s3thi•Updated 2 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 5 months ago