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=221&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 6963 results for "database"(1031ms)

Towniesystem_prompt.txt2 matches

@mickydziโ€ขUpdated 2 weeks ago
192```
193โ”œโ”€โ”€ backend/
194โ”‚ โ”œโ”€โ”€ database/
195โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
196โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
252 ```
253
254### Database Patterns
255- Run migrations on startup or comment out for performance
256- Change table names when modifying schemas rather than altering

Towniesend-message.ts1 match

@mickydziโ€ขUpdated 2 weeks ago
10 overLimit,
11 startTrackingUsage,
12} from "../database/queries.tsx";
13import {
14 getTextEditorTool,

Towniequeries.tsx1 match

@mickydziโ€ขUpdated 2 weeks ago
4import { INFERENCE_CALLS_TABLE, USAGE_TABLE } from "./schema.tsx";
5
6// Eventually we'll have a user database,
7// but in the meantime, we can cache user info in memory
8const userIdCache: { [key: string]: any } = {};

Townie.cursorrules2 matches

@mickydziโ€ขUpdated 2 weeks ago
198```
199โ”œโ”€โ”€ backend/
200โ”‚ โ”œโ”€โ”€ database/
201โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
202โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
257 ```
258
259### Database Patterns
260- Run migrations on startup or comment out for performance
261- Change table names when modifying schemas rather than altering

Glideropsbilling.ts1 match

@jasonrโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3import { TABLES } from "../database/migrations.ts";
4
5const app = new Hono();

Glideropsflights.ts1 match

@jasonrโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3import { TABLES } from "../database/migrations.ts";
4
5const app = new Hono();

Glideropsmaintenance.ts1 match

@jasonrโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3import { TABLES } from "../database/migrations.ts";
4
5const app = new Hono();

happinessregistrationportalindex.ts2 matches

@seipatiannah1โ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { cors } from "https://esm.sh/hono@3.11.7/cors";
3import { runMigrations } from "./database/migrations.ts";
4import authRoutes from "./routes/auth.ts";
5import childrenRoutes from "./routes/children.ts";
18app.use("*", cors());
19
20// Run database migrations
21app.use("*", async (c, next) => {
22 try {
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { jwt } from "https://esm.sh/hono@3.11.7/jwt";
3import { getPolicyAcceptance, updatePolicyAcceptance } from "../database/queries.ts";
4import { DAYCARE_RULES, UpdatePolicyAcceptanceRequest } from "../../shared/types.ts";
5
6 getChildrenByParentId,
7 getAllChildren
8} from "../database/queries.ts";
9import { CreateChildRequest } from "../../shared/types.ts";
10import { email } from "https://esm.town/v/std/email";

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago