mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
* Draft begins * Starte SvelteKit * Changes * Consolidate creating a client * Final draft * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Rework and simplify * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * improve spacing * last * Simplify example * Prettier * Fix hono, remove old pages, and add redirects * Remove from menu * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Changes --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> Co-authored-by: Alan Daniel <stylesshjs@gmail.com>
19 lines
486 B
SQL
19 lines
486 B
SQL
-- Create the table
|
|
create table countries (
|
|
id bigint primary key generated always as identity,
|
|
name text not null
|
|
);
|
|
-- Insert some sample data into the table
|
|
insert into countries (name)
|
|
values
|
|
('Canada'),
|
|
('United States'),
|
|
('Mexico');
|
|
|
|
alter table countries enable row level security;
|
|
|
|
-- Create a policy that allows authenticated users to read countries
|
|
create policy "authenticated users can read countries"
|
|
on public.countries
|
|
for select to authenticated
|
|
using (true); |