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=105&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 4142 results for "database"(1066ms)

MyStevensmemoryUtils.ts1 match

@billogiovanniโ€ขUpdated 2 weeks ago
2
3/**
4 * Retrieves all memories from the database
5 * @param includeDate Whether to include date-specific memories or not
6 * @param startDate Optional start date to filter memories from (ISO format)

MyStevensindex.ts1 match

@billogiovanniโ€ขUpdated 2 weeks ago
6import { Hono } from "npm:hono";
7import { type Memory } from "../shared/types.ts";
8import { createMemory, deleteMemory, getAllMemories, updateMemory } from "./database/queries.ts";
9
10const app = new Hono();

MyStevenshandleTelegramMessage.ts1 match

@billogiovanniโ€ขUpdated 2 weeks ago
34
35/**
36 * Store a chat message in the database
37 */
38export async function storeChatMessage(

MyStevensgetWeather.ts1 match

@billogiovanniโ€ขUpdated 2 weeks ago
130 }
131
132 console.log(`Weather forecast updated in the database.`);
133 return summary;
134}

MyStevensgetCalendarEvents.ts1 match

@billogiovanniโ€ขUpdated 2 weeks ago
125 }
126
127 console.log(`Calendar events imported into the database.`);
128 return events;
129 } catch (error) {

MyStevensgenerateFunFacts.ts2 matches

@billogiovanniโ€ขUpdated 2 weeks ago
8
9/**
10 * Retrieves previously generated fun facts from the memories database
11 * @returns Array of previous fun facts
12 */
47
48/**
49 * Inserts a fun fact into the memories database
50 * @param date Date for the fun fact in ISO format
51 * @param factText The fun fact text

MyStevens.cursorrules2 matches

@billogiovanniโ€ขUpdated 2 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

survivor-trackerapi.ts4 matches

@prashamtrivediโ€ขUpdated 2 weeks ago
22 saveWeeklyReview,
23 updateTaskStatus,
24} from "./database/queries.ts";
25
26import { formatDate, getCurrentDay, getCurrentWeek } from "../shared/utils.ts";
27import { generateWeeklyReview, getDailyStandupFeedback, getQuickGuidance, getTrackGuidance } from "./ai/processor.ts";
28import { seedDatabase } from "./database/seeder.ts";
29
30// Create Hono app
39 if (!initialized) {
40 try {
41 await seedDatabase(import.meta.url);
42 initialized = true;
43 } catch (error) {
44 console.error("Error initializing database:", error);
45 }
46 }

survivor-trackerREADME.md3 matches

@prashamtrivediโ€ขUpdated 2 weeks ago
42โ”‚ โ”œโ”€โ”€ ai/
43โ”‚ โ”‚ โ””โ”€โ”€ processor.ts # AI integration for guidance
44โ”‚ โ”œโ”€โ”€ database/
45โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
46โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # Database queries
47โ”‚ โ”‚ โ””โ”€โ”€ seeder.ts # Initial data seeding
48โ”‚ โ”œโ”€โ”€ resources/

survivor-trackermigrations.ts2 matches

@prashamtrivediโ€ขUpdated 2 weeks ago
2
3/**
4 * Initialize database schema for 21-Day Survival Plan Tracker
5 */
6export const initializeDatabase = async () => {
7 // Create personal_status table
8 await sqlite.execute(`

bookmarksDatabase

@s3thiโ€ขUpdated 2 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 5 months ago