Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamlmao/supabase-dump-to-files
Dump supabase tables and RPC functions to files in your repo.
https://github.com/williamlmao/supabase-dump-to-files
Last synced: 18 days ago
JSON representation
Dump supabase tables and RPC functions to files in your repo.
- Host: GitHub
- URL: https://github.com/williamlmao/supabase-dump-to-files
- Owner: williamlmao
- Created: 2024-09-25T11:41:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-25T11:50:54.000Z (3 months ago)
- Last Synced: 2024-11-30T20:39:58.914Z (24 days ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
I use supabase and I also use cursor. I wanted to give cursor access to my supabase table schemas, so my solution was to dump the tables and RPCs from a `db dump` and split them into files, so they can be @table referenced by cursor.
Setup:
1. Copy one of these scripts into your repo
2. Update the supabase folder path in the script and output directory
3. Add a run command to your package.json, `"dump-tables": "node ./scripts/extractTables.js"`
4. Run the script `npm run dump-tables`