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=69&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 4024 results for "database"(783ms)

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 1 week 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 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();

cerebras_codermain.tsx2 matches

@ankitsahโ€ข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();

html_in_hyde_1main.tsx3 matches

@mboโ€ขUpdated 1 week 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 1 week 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 1 week 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)`,

stevensDemosetupTelegramChatDb.ts2 matches

@mcpolemicโ€ขUpdated 1 week ago
1// Script to set up the telegram_chats table in SQLite
2// Run this script manually to create the database table
3
4export default async function setupTelegramChatDb() {
25 `);
26
27 return "Telegram chat database table created successfully.";
28 } catch (error) {
29 console.error("Error setting up telegram_chats table:", error);

bookmarksDatabase

@s3thiโ€ขUpdated 2 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 5 months ago