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=1&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 7335 results for "database"(1979ms)

bookmarksDatabase

@s3thi•Updated 3 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 6 months ago

yc_database

@stevekrouse•Updated 6 months ago

notionGetDatabase2 file matches

@junhoca•Updated 9 months ago

notionGetDatabase2 file matches

@ttodosi•Updated 9 months ago

databaseRunner1 file match

@nicosuave•Updated 11 months ago

dateMeNotionDatabase2 file matches

@stevekrouse•Updated 1 year ago

notionGetDatabaseEditedAfter2 file matches

@stevekrouse•Updated 1 year ago

databaseVal2 file matches

@stevekrouse•Updated 1 year ago

getDateMeDatabase2 file matches

@stevekrouse•Updated 1 year ago

Towniequeries.tsx1 match

@valdottown•Updated 15 mins ago
6const PRICE_MULTIPLIER = 1.5;
7
8// Eventually we'll have a user database,
9// but in the meantime, we can cache user info in memory
10const userIdCache: { [key: string]: any } = {};

Loulou_token_storage.tsx6 matches

@jeffvincent•Updated 28 mins ago
37 }
38
39 async initializeDatabase(): Promise<void> {
40 // Create tokens table if it doesn't exist
41 await sqlite.execute(`
63 async storeTokens(userId: string, tokenData: TokenData): Promise<boolean> {
64 try {
65 await this.initializeDatabase();
66
67 // Calculate expiration time (default to 1 hour if not provided)
89 async getTokens(userId: string): Promise<StoredTokens | null> {
90 try {
91 await this.initializeDatabase();
92
93 const result = await sqlite.execute(
133 async deleteTokens(userId: string): Promise<boolean> {
134 try {
135 await this.initializeDatabase();
136
137 await sqlite.execute(
150 async listUsers(): Promise<UserRecord[]> {
151 try {
152 await this.initializeDatabase();
153
154 const result = await sqlite.execute(
169 async getTokenCount(): Promise<number> {
170 try {
171 await this.initializeDatabase();
172
173 const result = await sqlite.execute("SELECT COUNT(*) as count FROM tokens");