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/$%7BsvgDataUrl%7D?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 7464 results for "database"(3297ms)

Upstash300 words

https://docs.val.town/integrations/databases/upstash/
Section titled “Create an Upstash account” Go to https://console.upstash.com/login. Create a database. Section titled “Create a database” Click Create database. Name: whatever you want. Type: Regional. Region: Iowa (us-central1), because

Sections

Upstash

plain text. Open in ChatGPT Ask questions about this page. Upstash provides a serverless Redis database, which can be used as a key-value store of up to 1mb with a

Create a database

Create a database. Section titled “Create a database” Click Create database. Name: whatever you want. Type: Regional. Region: Iowa (us-central1), because it’s closest to Val Town’s servers. Enable TLS for

Set some data

to Run this Val and have it return the same results from your own Upstash database. Saving dataRun in Val Town ↗ import { Redis } from "npm:@upstash/redis"; const redis

PlanetScale358 words

https://docs.val.town/integrations/databases/planetscale/
Go to https://auth.planetscale.com/sign-up. 2. Create a new database. Section titled “2. Create a new database” Select New database on the dashboard. Create a database. 3. Create a password. Section titled

Sections

PlanetScale

text. Open in ChatGPT Ask questions about this page. PlanetScale once provided a hosted MySQL database with 5GB of storage included in the free tier. On April 8, 2024, the

2. Create a new database

2. Create a new database. Section titled “2. Create a new database” Select New database on the dashboard. Create a database.

7. Do more than queries!

7. Do more than queries! Section titled “7. Do more than queries!” Read the source of the @vtdocs/queryPlanetScale helper, see how it uses the @planetscale/database SDK, refer to the driver’s

SQLite168 words

https://docs.val.town/std/sqlite/
Ask questions about this page. SQLite is a lightweight, standard database. Every Val Town account comes with its own private SQLite database that is accessible from any of your vals

Sections

SQLite

Ask questions about this page. SQLite is a lightweight, standard database. Every Val Town account comes with its own private SQLite database that is accessible from any of your vals

SQLite Admin Panels

SQLite Admin Panels. Section titled “SQLite Admin Panels” We recommend these admin data viewers for managing your database – viewing or editing data or your database table schema: Outerbase Studio

Supabase667 words

https://docs.val.town/integrations/databases/supabase/
a note of your database password, you’ll need this to create a database connection string. 3. Get your database’s connection string. Section titled “3. Get your database’s connection string” Go

Sections

Supabase

plain text. Open in ChatGPT Ask questions about this page. Supabase provide a hosted Postgres database with 500MB of storage in the free tier. You can query and create data

2. Create a project

Supabase’s dashboard, create a new project. Keep a note of your database password, you’ll need this to create a database connection string.

3. Get your database’s connection string

Get your database’s connection string. Section titled “3. Get your database’s connection string” Go to your project’s Settings via the sidebar. Inside Database, scroll down and copy the Connection string

7. More resources

7. More resources. Section titled “7. More resources” Learn more about the Deno Postgres client used in this guide, view the Supabase Database documentation, or get help on Val Town’s

Neon Postgres283 words

https://docs.val.town/integrations/databases/neon-postgres/
this page. Neon provides a PostgreSQL database with an API accessible over HTTP and a JavaScript SDK. This lets you use a more conventional relational database model in your vals.

Sections

Neon Postgres

this page. Neon provides a PostgreSQL database with an API accessible over HTTP and a JavaScript SDK. This lets you use a more conventional relational database model in your vals.

Setup

Fill out the fields: Name: Any. Postgres version: If you need to use the database with other software, 14 provides better compatibility. Else, use the default of 15. Region: Choose

Overview103 words

https://docs.val.town/api/
API allows you to programmatically manage your account and its resources: vals, blob storage, sqlite databases, likes, comments, and more. Tip Val Town’s REST API should not be confused with

Sections

Overview

API allows you to programmatically manage your account and its resources: vals, blob storage, sqlite databases, likes, comments, and more. Tip Val Town’s REST API should not be confused with

ORMs206 words

https://docs.val.town/std/sqlite/orms/
that only exists in a classic server environment. Sequelize. Section titled “Sequelize” 🚫 Sequelize isn’t supported in Val Town because it relies on specific database drivers and is not extensible.

Sections

Sequelize

Sequelize. Section titled “Sequelize” 🚫 Sequelize isn’t supported in Val Town because it relies on specific database drivers and is not extensible.

Authentication284 words

https://docs.val.town/api/authentication/
val – vals. user – user account details. blob – blob storage. sqlite – sqlite database. email – ability to send emails. You can confiure the scopes on the API

Sections

Scopes

Scopes. Section titled “Scopes” Val Town API tokens are scoped to read/write scopes for: val – vals. user – user account details. blob – blob storage. sqlite – sqlite database.

Stripe741 words

https://docs.val.town/integrations/stripe/
listens for successful payment events from Stripe. You can use this webhook to update your database to authorize the user to view premium content or send a confirmation email to

Sections

Stripe

listens for successful payment events from Stripe. You can use this webhook to update your database to authorize the user to view premium content or send a confirmation email to

2. Handle Fulfillment

the product to them. If you are selling a subscription, this might mean updating your database to authorize the user to view premium content. You can listen for events from

Saving data from a web page521 words

https://docs.val.town/guides/saving-data-from-a-web-page/
store for storing files, JSON, images, large blobs of data, while SQLite is a SQL database with ACID transactions, indexes, and more. You can also use external services like Firebase,

Sections

Saving data from a web page

store for storing files, JSON, images, large blobs of data, while SQLite is a SQL database with ACID transactions, indexes, and more. You can also use external services like Firebase,

cardamonval-town.mdc2 matches

@connnolly•Updated 2 hours ago
179```
180├── backend/
181│ ├── database/
182│ │ ├── migrations.ts # Schema definitions
183│ │ ├── queries.ts # DB query functions
239 ```
240
241### Database Patterns
242- Run migrations on startup or comment out for performance
243- Change table names when modifying schemas rather than altering

GlancerdemoCache.ts7 matches

@lightweight•Updated 6 hours ago
2import { Client } from "npm:@notionhq/client";
3import { blobKeyForDemoCache } from "../../shared/utils/blobKeyForDemoCache.ts";
4import { getRelatedPagesFromDatabase } from "../controllers/relatedPages.controller.ts";
5
6// Initialize Notion client
11export default async function (interval: Interval) {
12 // this cron runs every minute
13 // it saves a blob for every page in the "Glancer demos" database
14 // that holds the Notion data and markup needed for every demo
15 // this way, to build a demo in the browser (ie., when /demo/:id is called),
18 const twoDaysAgo = new Date(Date.now() - 48 * 60 * 60 * 1000).toISOString();
19 try {
20 const pages = await notion.databases.query({
21 database_id: Deno.env.get("GLANCE_DEMOS_DB_ID"),
22 filter: {
23 // only get recently edited demos; we don't need to keep stale demos in the cache
29 });
30 console.log("pages to cache: ", pages.results.length);
31 // for each page in the demo database, save a blob
32 for (const page of pages.results) {
33 // remove properties that are not used in the demo and don't need to be saved to the blob
48 page.properties = scrubbed;
49
50 // get "Glancer content" database pages added to the demo page
51 const relatedPages = await getRelatedPagesFromDatabase(page.id);
52
53 // use the same blob key that /views/demo/demo.ts calls to build the page

bookmarksDatabase

@s3thi•Updated 3 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 6 months ago