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=177&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 7780 results for "database"(1570ms)

FindMyCarREADME.md4 matches

@Saraxxxโ€ขUpdated 2 weeks ago
27โ”œโ”€โ”€ backend/
28โ”‚ โ”œโ”€โ”€ index.ts # Main Hono server
29โ”‚ โ”œโ”€โ”€ database/
30โ”‚ โ”‚ โ”œโ”€โ”€ schema.ts # Database schema
31โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
32โ”‚ โ””โ”€โ”€ routes/
33โ”‚ โ”œโ”€โ”€ stolen.ts # Stolen car reports
533. Use the map view to see locations of reported vehicles
54
55## Database
56
57Uses SQLite with tables for:

FindMyCarmigrations.ts1 match

@Saraxxxโ€ขUpdated 2 weeks ago
81 await sqlite.execute(`CREATE INDEX IF NOT EXISTS idx_matches_found ON ${MATCHES_TABLE}(found_car_id);`);
82
83 console.log('Database tables created successfully');
84}

FindMyCarmatches.ts1 match

@Saraxxxโ€ขUpdated 2 weeks ago
8 updateStolenCarStatus,
9 updateFoundCarStatus
10} from "../database/queries.ts";
11
12const app = new Hono();

FindMyCarindex.ts2 matches

@Saraxxxโ€ขUpdated 2 weeks 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 { createTables } from "./database/migrations.ts";
4
5// Import route modules
16});
17
18// Initialize database on startup
19await createTables();
20

FindMyCarfound.ts1 match

@Saraxxxโ€ขUpdated 2 weeks ago
8 findPotentialMatches,
9 createMatch
10} from "../database/queries.ts";
11
12const app = new Hono();

Advertappadvertisements.ts1 match

@Raj3bโ€ขUpdated 2 weeks ago
6 getAdvertisementWithLeads,
7 getAdvertisementStats
8} from "../database/queries.ts";
9import type {
10 User,

Advertappmigrations.ts2 matches

@Raj3bโ€ขUpdated 2 weeks ago
8
9export async function runMigrations() {
10 console.log('Running database migrations...');
11
12 // Create users table
92 await sqlite.execute(`CREATE INDEX IF NOT EXISTS idx_orders_status ON ${ORDERS_TABLE}(status)`);
93
94 console.log('Database migrations completed');
95}
96

untitled-1096todos.ts1 match

@Ozyโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import type { TodoItem, ApiResponse } from "../../shared/types.ts";
3import * as queries from "../database/queries.ts";
4
5const todos = new Hono();

untitled-1096events.ts1 match

@Ozyโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import type { ScheduleEvent, ApiResponse } from "../../shared/types.ts";
3import * as queries from "../database/queries.ts";
4
5const events = new Hono();

untitled-1096migrations.ts1 match

@Ozyโ€ขUpdated 2 weeks ago
33 `);
34
35 console.log('Database migrations completed');
36}

bookmarksDatabase

@s3thiโ€ขUpdated 4 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 7 months ago