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/image-url.jpg?q=database&page=227&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 5688 results for "database"(2715ms)

stevensDemo.cursorrules2 matches

@Shmullyβ€’Updated 4 weeks ago
208```
209β”œβ”€β”€ backend/
210β”‚ β”œβ”€β”€ database/
211β”‚ β”‚ β”œβ”€β”€ migrations.ts # Schema definitions
212β”‚ β”‚ β”œβ”€β”€ queries.ts # DB query functions
270- Handle API calls properly with proper error catching
271
272### Database Patterns
273- Run migrations on startup or comment out for performance
274- Change table names when modifying schemas rather than altering

Lair2main.tsx1 match

@Getβ€’Updated 4 weeks ago
548 }
549 const domain = payload.policyDomain.toLowerCase();
550 // Mock Database / Retrieval Logic
551 const mockKB = {
552 "environmental": [
1---
2title: "Post-mortem: A Backward Incompatible Database Migration"
3description: Val runs failed due to a database migration that was not backward compatible
4pubDate: 2025-04-02T00:00:00.000Z
5author: Sophie Houser
8Today at 10:11am we experienced a 12-minute outage, which caused HTTP vals to
9return 503 errors and other types of vals to fail. In the end, the root cause
10was a deployment timing issue where database migrations were deployed
11successfully, but our application code deployment hung for several minutes. The
12new database migrations were incompatible with the old application code and
13crashed the process.
14
15We aim to make all database migrations maintain backward compatibility, but in
16this case, we only discovered through the delayed deployment feedback that the
17new migrations were not compatible with previous versions.
39
40Reliability is important to us and we’ve taken steps to make sure this doesn’t
41happen again. We’ve added a test to ensure database migrations are backward
42compatible, which we’ll run before we deploy any new code that includes database
43migrations.
44

ValTownBlogget-old-posts.ts1 match

@wolfβ€’Updated 4 weeks ago
47 "slug": "codegen",
48 "link": "/blog/codegen",
49 "description": "Like Claude Artifacts, but with a backend and database",
50 "pubDate": "Thu, 22 Aug 2024 00:00:00 GMT",
51 "author": "JP Posma",

ValTownBlog.cursorrules2 matches

@wolfβ€’Updated 4 weeks 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

HelloWorld.cursorrules2 matches

@wolfβ€’Updated 4 weeks 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

pondiverseaddCreation2 matches

@todepondβ€’Updated 4 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, $time)`,

reactHonoExampleindex.ts1 match

@stevekrouseβ€’Updated 4 weeks ago
1import { parseProject, readFile, serveFile } from "https://esm.town/v/std/utils/index.ts";
2import { Hono } from "npm:hono";
3import { getMessages, insertMessage } from "./database/queries.ts";
4
5const app = new Hono();
vtProjectSearch

vtProjectSearchdb.ts3 matches

@maxmβ€’Updated 4 weeks ago
190
191/**
192 * Get database statistics for the homepage
193 */
194export async function getSearchStats(): Promise<{
873 const offset = (page - 1) * pageSize;
874
875 // Start all database queries in parallel
876 // 1. Launch count queries
877 const countsPromise = withTiming(() => Promise.all([
960 ));
961
962 // Wait for all database operations to complete in parallel
963 const [
964 [countsResult, countsTime],
vtProjectSearch

vtProjectSearch.cursorrules2 matches

@maxmβ€’Updated 4 weeks 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

bookmarksDatabase

@s3thiβ€’Updated 3 months ago

sqLiteDatabase1 file match

@ideofunkβ€’Updated 6 months ago