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/$%7Burl%7D?q=database&page=80&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 4135 results for "database"(546ms)

OpenTowniesystem_prompt.txt2 matches

@charmaineโ€ขUpdated 1 week ago
192```
193โ”œโ”€โ”€ backend/
194โ”‚ โ”œโ”€โ”€ database/
195โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
196โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
251 ```
252
253### Database Patterns
254- Run migrations on startup or comment out for performance
255- Change table names when modifying schemas rather than altering

Projectmain.tsx1 match

@ladyflo0600โ€ขUpdated 1 week ago
311 const { cart, userContact, total } = await request.json();
312
313 // Insert order into database
314 await sqlite.execute(
315 `INSERT INTO ${KEY}_orders (

vtEditorFiles.cursorrules2 matches

@stdโ€ขUpdated 1 week ago
198```
199โ”œโ”€โ”€ backend/
200โ”‚ โ”œโ”€โ”€ database/
201โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
202โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
257 ```
258
259### Database Patterns
260- Run migrations on startup or comment out for performance
261- Change table names when modifying schemas rather than altering

cerebras_codermain.tsx2 matches

@Parvezalm6โ€ขUpdated 1 week ago
1import { serveFile } from "https://esm.town/v/std/utils/index.ts";
2import { generateCode } from "./backend/generate-code.ts";
3import { createTables } from "./database/migrations.ts";
4import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries.ts";
5
6await createTables();

pondiverseaddCreation2 matches

@iliazeusโ€ขUpdated 2 weeks ago
46 }
47
48 // Now it's time to upload things to database and blob storage
49 // First, add to database, and get the ID
50 const id = await sqlite.execute(
51 `INSERT INTO ${TABLE_NAME} (title, data, type, time) VALUES ($title, $data, $type, CURRENT_TIMESTAMP)`,

cerebras_codermain.tsx2 matches

@pawanlk19โ€ขUpdated 2 weeks ago
1import { serveFile } from "https://esm.town/v/std/utils/index.ts";
2import { generateCode } from "./backend/generate-code.ts";
3import { createTables } from "./database/migrations.ts";
4import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries.ts";
5
6await createTables();

cerebras_codermain.tsx2 matches

@ankitsahโ€ขUpdated 2 weeks ago
1import { serveFile } from "https://esm.town/v/std/utils/index.ts";
2import { generateCode } from "./backend/generate-code.ts";
3import { createTables } from "./database/migrations.ts";
4import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries.ts";
5
6await createTables();

html_in_hyde_1main.tsx3 matches

@mboโ€ขUpdated 2 weeks ago
8}
9
10async function initializeDatabase() {
11 await sqlite.execute({
12 sql: `
30
31export default async function(req: Request) {
32 await initializeDatabase();
33 // await dropAllRows();
34
87 }
88
89 // if an email is already in the database, update all its fields with the new values
90 const result = await sqlite.execute({
91 sql: "SELECT * FROM rsvps WHERE email = ?",

Foodiesmain.tsx1 match

@ShaneDevXโ€ขUpdated 2 weeks ago
412 }
413
414 // Save order to database using the new table version
415 await sqlite.execute(
416 `INSERT INTO ${KEY}_orders_${SCHEMA_VERSION} (items, latitude, longitude, delivery_method, status) VALUES (?, ?, ?, ?, ?)`,

pondiverseaddCreation2 matches

@iliazeusโ€ขUpdated 2 weeks ago
46 }
47
48 // Now it's time to upload things to database and blob storage
49 // First, add to database, and get the ID
50 const id = await sqlite.execute(
51 `INSERT INTO ${TABLE_NAME} (title, data, type, time) VALUES ($title, $data, $type, CURRENT_TIMESTAMP)`,

bookmarksDatabase

@s3thiโ€ขUpdated 2 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 5 months ago