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/?q=database&page=84&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 3930 results for "database"(838ms)

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(`

survivor-trackerqueries.ts1 match

@prashamtrivediโ€ขUpdated 2 weeks ago
2import { crypto } from "https://deno.land/std/crypto/mod.ts";
3
4// Types for database models
5export interface PersonalStatus {
6 id?: number;

survivor-trackerseeder.ts7 matches

@prashamtrivediโ€ขUpdated 2 weeks ago
1/**
2 * Database seeder - populates the database with initial data
3 */
4
5import { crypto } from "https://deno.land/std/crypto/mod.ts";
6import { parseSurvivalPlan, getCurrentDay, getCurrentWeek, formatDate } from "../../shared/utils.ts";
7import { initializeDatabase } from "./migrations.ts";
8import {
9 saveTask,
13} from "./queries.ts";
14
15// Main seeder function - initializes the database and populates it with tasks
16export const seedDatabase = async (importMetaUrl: string): Promise<void> => {
17 // Initialize the database schema
18 await initializeDatabase();
19
20 // Seed track statuses
30 await seedDailyNonNegotiables(dailyNonNegotiables);
31
32 console.log("Database seeded successfully!");
33};
34

bookmarksDatabase

@s3thiโ€ขUpdated 2 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 5 months ago