Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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`