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=201&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 7790 results for "database"(6007ms)

VA-TASK-TIDYindex.ts2 matches

@aishatopeyemiโ€ข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 { runMigrations } from "./database/migrations.ts";
4import api from "./routes/api.ts";
5
11});
12
13// Initialize database on startup
14await runMigrations();
15

VA-TASK-TIDYapi.ts1 match

@aishatopeyemiโ€ขUpdated 2 weeks ago
10 getTaskSetById,
11 getTaskSetByUserAndDate,
12} from "../database/queries.ts";
13import { sendCompletionConfirmation } from "../services/emailService.ts";
14

VA-TASK-TIDYmigrations.ts3 matches

@aishatopeyemiโ€ขUpdated 2 weeks ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2
3// Database schema for VA Task Tidy
4// Note: Change table names when modifying schemas
5
9
10export async function runMigrations() {
11 console.log('Running database migrations...');
12
13 // Users table
52 `);
53
54 console.log('Database migrations completed successfully');
55}
56

VA-TASK-TIDYREADME.md4 matches

@aishatopeyemiโ€ขUpdated 2 weeks ago
15```
16โ”œโ”€โ”€ backend/
17โ”‚ โ”œโ”€โ”€ database/
18โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
19โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
20โ”‚ โ”œโ”€โ”€ routes/
21โ”‚ โ”‚ โ”œโ”€โ”€ api.ts # API endpoints
41## Setup
42
431. The app automatically creates the database on first run
442. Set up the cron jobs for automated reminders
453. Users can access the app to set tasks and view their progress

VA_TASK_TIDYmigrations.ts2 matches

@aishatโ€ขUpdated 2 weeks ago
42 `);
43
44 console.log("Database migrations completed successfully");
45 } catch (error) {
46 console.error("Database migration error:", error);
47 // Don't throw the error to allow the app to start even if DB is temporarily unavailable
48 }

VA_TASK_TIDYindex.ts2 matches

@aishatโ€ข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 { runMigrations } from "./database/migrations.ts";
4import api from "./routes/api.ts";
5
11});
12
13// Initialize database
14await runMigrations();
15

VA_TASK_TIDYmorning-reminder.ts3 matches

@aishatโ€ขUpdated 2 weeks ago
2// Schedule: 0 9 * * * (9AM every day)
3
4import { runMigrations } from "../backend/database/migrations.ts";
5import {
6 getUsersNeedingMorningReminder,
7 getTasksForDate,
8 markReminderSent
9} from "../backend/database/queries.ts";
10import { sendMorningReminder } from "../backend/routes/email.ts";
11
14
15 try {
16 // Ensure database is initialized
17 await runMigrations();
18

VA_TASK_TIDYevening-reminder.ts3 matches

@aishatโ€ขUpdated 2 weeks ago
2// Schedule: 0 20 * * * (8PM every day)
3
4import { runMigrations } from "../backend/database/migrations.ts";
5import {
6 getUsersNeedingEveningReminder,
7 getTodaysTasks
8} from "../backend/database/queries.ts";
9import { sendEveningReminder } from "../backend/routes/email.ts";
10
13
14 try {
15 // Ensure database is initialized
16 await runMigrations();
17

VA_TASK_TIDYapi.ts1 match

@aishatโ€ขUpdated 2 weeks ago
8 recordTaskCompletion,
9 getTasksForDate
10} from "../database/queries.ts";
11
12const api = new Hono();

VA_TASK_TIDYREADME.md4 matches

@aishatโ€ขUpdated 2 weeks ago
22```
23โ”œโ”€โ”€ backend/
24โ”‚ โ”œโ”€โ”€ database/
25โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
26โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
27โ”‚ โ”œโ”€โ”€ routes/
28โ”‚ โ”‚ โ”œโ”€โ”€ api.ts # API endpoints
45## Setup
46
471. The app will automatically create the necessary database tables
482. Set up the cron jobs for automated reminders (schedules need to be configured in Val Town UI)
493. Users can start adding their tasks immediately

bookmarksDatabase

@s3thiโ€ขUpdated 4 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 7 months ago