Public
Script
October 23, 2023
1
2
3
4
5
6
7
8
import process from "node:process";
import { supaBaseQuery } from "https://esm.town/v/vtdocs/supaBaseQuery";
export const supabaseSelectMyFirstTable = supaBaseQuery(
process.env.supabasePostgres,
`SELECT NAME, DATA FROM MY_FIRST_TABLE WHERE NAME = $1;`,
["Alice"],
);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023