-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feat: init supabase #548
Feat: init supabase #548
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
} | ||
} | ||
Views: { | ||
[_ in never]: never |
Check warning
Code scanning / ESLint
disallow unused variables Warning
} | ||
} | ||
Enums: { | ||
[_ in never]: never |
Check warning
Code scanning / ESLint
disallow unused variables Warning
[_ in never]: never | ||
} | ||
CompositeTypes: { | ||
[_ in never]: never |
Check warning
Code scanning / ESLint
disallow unused variables Warning
@@ -0,0 +1,359 @@ | |||
import { createClient } from '@supabase/supabase-js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is the bulk of the implementation logic for the GET/READ operations
@@ -0,0 +1,280 @@ | |||
export type Json = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These types are auto-generated via supabase
CLI, based on table/schema & function definitions set up in Supabase (cloud project)
@@ -0,0 +1,272 @@ | |||
/* --- READ OPERATIONS --- */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mirroring definitions here (i.e., /supabase/seed
) from cloud-based project for version control
|
||
```bash | ||
npx supabase gen types --lang=typescript --project-id <project-id> --schema public > database.types.ts | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preliminary docs, this is the command for generating the types from the schemas/definition in the cloud project locally
No description provided.