Readme

Creating a table in Supabase via Postgres.

Part of the Supabase guide on docs.val.town.

1
2
3
4
5
6
7
8
9
10
11
12
13
import process from "node:process";
import { supaBaseQuery } from "https://esm.town/v/vtdocs/supaBaseQuery";
export const supabaseCreateMyFirstTable = supaBaseQuery(
process.env.supabasePostgres,
`create table my_first_table (
id bigint generated by default as identity primary key,
inserted_at timestamp with time zone default timezone('utc'::text, now()) not null,
updated_at timestamp with time zone default timezone('utc'::text, now()) not null,
data jsonb,
name text
);`,
);
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