Skip to content
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

Merged
merged 6 commits into from
Aug 25, 2024
Merged

Feat: init supabase #548

merged 6 commits into from
Aug 25, 2024

Conversation

awpala
Copy link
Contributor

@awpala awpala commented Aug 24, 2024

No description provided.

@awpala awpala added this to the 2.0 - Refinement milestone Aug 24, 2024
@awpala awpala requested a review from tran-christian August 24, 2024 03:18
@awpala awpala self-assigned this Aug 24, 2024
Copy link

vercel bot commented Aug 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2024 4:06am

@github-actions github-actions bot added documentation Improvements or additions to documentation root AnyChange release labels Aug 24, 2024
}
}
Views: {
[_ in never]: never

Check warning

Code scanning / ESLint

disallow unused variables Warning

'_' is defined but never used.
}
}
Enums: {
[_ in never]: never

Check warning

Code scanning / ESLint

disallow unused variables Warning

'_' is defined but never used.
[_ in never]: never
}
CompositeTypes: {
[_ in never]: never

Check warning

Code scanning / ESLint

disallow unused variables Warning

'_' is defined but never used.
@@ -0,0 +1,359 @@
import { createClient } from '@supabase/supabase-js';
Copy link
Contributor Author

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 =
Copy link
Contributor Author

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 --- */
Copy link
Contributor Author

@awpala awpala Aug 24, 2024

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
```
Copy link
Contributor Author

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

@omshub-admin omshub-admin merged commit c936d1c into main Aug 25, 2024
15 of 16 checks passed
@omshub-admin omshub-admin deleted the init-supabase branch August 25, 2024 04:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants