Open3
Supabase x Refineメモ
MySQLのデータをSupabaseに移行する
が参考になる
Colabで実行でOK
Supabaseの権限を調整
Importしたschemaには権限が設定されていないので以下SQLを実行することでアクセスできるようになる
GRANT USAGE ON SCHEMA "schema名" TO ANON;
GRANT USAGE ON SCHEMA "schema名" TO AUTHENTICATED;
GRANT ALL ON TABLE schema名.table名 TO postgres;
GRANT ALL ON TABLE schema名.table名s TO authenticated;
GRANT ALL ON TABLE schema名.table名 TO service_role;
Refineの設定
プロジェクトを作成
pnpm create refine-app@latest app名
/ CRUD apps so sleek, even the cows \
| want in! Let's get mooo-ving with |
\ Refine! /
-----------------------------------
\ ^__^
■-■¬\_______
(__)\ )\/\
||----w |
|| ||
✔ Downloaded remote source successfully.
✔ Choose a project template · refine-nextjs
✔ What would you like to name your project?: · example-app
✔ Choose your backend service to connect: · data-provider-supabase
✔ Do you want to use a UI Framework?: · antd
✔ Do you want to add example pages?: · antd-example
✔ Choose a package manager: · pnpm
✔ Mind sharing your email? (We reach out to developers for free priority support, events, and SWAG kits. We never spam.) ·
Success! Created example-app at refine 🚀