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=214&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 8756 results for "database"(1876ms)

untitled-8829index.ts2 matches

@M_mb_aโ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "./database/migrations.ts";
3import eventsRouter from "./routes/events.ts";
4import chatRouter from "./routes/chat.ts";
12});
13
14// Initialize database on startup
15await runMigrations();
16

creatawebhoodforabusinessmigrations.ts2 matches

@Victoria1234โ€ขUpdated 1 month ago
7
8export async function runMigrations() {
9 console.log('Running order sorting database migrations...');
10
11 // Create customers table
95 await sqlite.execute(`CREATE INDEX IF NOT EXISTS idx_customers_type ON ${CUSTOMERS_TABLE}(type)`);
96
97 console.log('Order sorting database migrations completed successfully');
98}
99

creatawebhoodforabusinessindex.ts2 matches

@Victoria1234โ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
3import { runMigrations } from "./database/migrations.ts";
4import webhook from "./routes/webhook.ts";
5import orders from "./routes/orders.ts";
12});
13
14// Initialize database on startup
15await runMigrations();
16

untitled-8829static.ts1 match

@M_mb_aโ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
3import { getEvents } from "../database/queries.ts";
4
5const staticRoutes = new Hono();

untitled-8829chat.ts1 match

@M_mb_aโ€ขUpdated 1 month ago
7 getRecentMessages,
8 getEventById
9} from "../database/queries.ts";
10
11const chat = new Hono();

omoindex.ts2 matches

@omoba6417โ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "./database/migrations.ts";
3import flightsRoutes from "./routes/flights.ts";
4import staticRoutes from "./routes/static.ts";
11});
12
13// Initialize database on startup
14await runMigrations();
15

omoflights.ts1 match

@omoba6417โ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { searchFlights, createBooking, getBookingById, getFlightById } from "../database/queries.ts";
3import type { FlightSearchParams, BookingRequest } from "../../shared/types.ts";
4

untitled-8829events.ts1 match

@M_mb_aโ€ขUpdated 1 month ago
8 deleteEvent,
9 cleanupExpiredEvents
10} from "../database/queries.ts";
11
12const events = new Hono();

untitled-8829migrations.ts2 matches

@M_mb_aโ€ขUpdated 1 month ago
2
3export async function runMigrations() {
4 console.log("Running database migrations...");
5
6 // Events table
52 `);
53
54 console.log("Database migrations completed successfully");
55}

omoREADME.md4 matches

@omoba6417โ€ขUpdated 1 month ago
15```
16โ”œโ”€โ”€ backend/
17โ”‚ โ”œโ”€โ”€ database/
18โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema setup
19โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
20โ”‚ โ”œโ”€โ”€ routes/
21โ”‚ โ”‚ โ”œโ”€โ”€ flights.ts # Flight search and booking routes
42- `GET /api/bookings/:id` - Get booking details
43
44## Database Schema
45
46- `flights` - Available flights with routes, times, and pricing

customer-database-setup2 file matches

@stevenvapiโ€ขUpdated 3 weeks ago

prDatabase

@pdwโ€ขUpdated 4 weeks ago