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=383&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 3868 results for "database"(720ms)

notionDateMeDocsmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { parseNotionDateDoc } from "https://esm.town/v/stevekrouse/parseNotionDateDoc";
2import { logError } from "https://esm.town/v/stevekrouse/logError";
3import { getDateMeDatabase } from "https://esm.town/v/stevekrouse/getDateMeDatabase";
4
5export const notionDateMeDocs = (await getDateMeDatabase())
6 .map((d) =>
7 logError(() =>

untitled3740476main.tsx1 match

@jonathan•Updated 1 year ago
4export let untitled3740476 = notionDB({
5 token: notionToken,
6 databaseId: "69c9fbd8557b440493a2d41f9ce17749",
7 query: "Germany",
8});

queryPlanetScalemain.tsx1 match

@vtdocs•Updated 1 year ago
8 args?: any[],
9) => {
10 const { connect } = await import("npm:@planetscale/database");
11 const { host, username, password } = config;
12 const conn = connect({

duckDBmain.tsx2 matches

@hamilton•Updated 1 year ago
1export async function duckDB(url) {
2 const { Database } = await import("npm:duckdb-async");
3 const db = await Database.create(":memory:");
4 await db.all("load httpfs");
5 return await db.all(`select * from "${url}" LIMIT 5`);

formatCurrentDatetimeSentencemain.tsx1 match

@wilt•Updated 1 year ago
1// Outputs, e.g., "It is currently Sunday, May 21, 2023 at 12:11:04 PM Pacific Daylight Time."
2// timeZone should be a tz identifier as listed at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
3export function formatCurrentDatetimeSentence(timeZone: string): string {
4 const dateFormatter = new Intl.DateTimeFormat([], {

untitled_NwQdD9zCmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { databaseVal } from "https://esm.town/v/stevekrouse/databaseVal";
2
3export const untitled_NwQdD9zC = databaseVal.push({ hello: "world" });

createRelevantCommentmain.tsx3 matches

@thomasatflexos•Updated 1 year ago
22 process.env.supabaseKey,
23 );
24 // Query from the database to see if this link already exists
25 const { data, error } = await supabase
26 .from("linkedin_seedings")
34 if (data.length > 0) {
35 res.status(200).json({
36 message: "This link already exists in the database",
37 });
38 }
39 // Otherwise, start processing this new link
40 // First, retrieve documents in the database relevant to the post content
41 let relevantContent = await getRelevantContent(content);
42 let context = "";

notionGetDatabasemain.tsx4 matches

@stevekrouse•Updated 1 year ago
1export const notionGetDatabase = async ({ databaseId, auth, filter }: {
2 databaseId: string;
3 auth: string;
4 filter?: any;
8 );
9 const notion = new Client({ auth });
10 return collectPaginatedAPI(notion.databases.query, {
11 database_id: databaseId,
12 filter,
13 });

getAllNotionDbRowsREADME.md2 matches

@supersayan•Updated 1 year ago
1## Get All Rows of a Database in Notion
2
3Reference: [Query a Database](https://developers.notion.com/reference/post-database-query)
4
5How to get an access token: https://developers.notion.com/reference/create-a-token

dateMeNotionDatabaseREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: Archive/dateMeNotionDatabase

bookmarksDatabase

@s3thi•Updated 2 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 5 months ago