@selvajs/supabase-provider 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -14
- package/dist/cli/sync-migrations.d.ts +3 -0
- package/dist/cli/sync-migrations.d.ts.map +1 -0
- package/dist/cli/sync-migrations.js +108 -0
- package/dist/cli/sync-migrations.js.map +1 -0
- package/dist/data/__tests__/test-helpers.d.ts +2 -3
- package/dist/data/__tests__/test-helpers.d.ts.map +1 -1
- package/dist/data/__tests__/test-helpers.js +1 -0
- package/dist/data/__tests__/test-helpers.js.map +1 -1
- package/dist/data/client.d.ts +10 -2
- package/dist/data/client.d.ts.map +1 -1
- package/dist/data/client.js +3 -0
- package/dist/data/client.js.map +1 -1
- package/package.json +4 -1
- package/src/cli/sync-migrations.ts +133 -0
- package/src/data/__tests__/test-helpers.ts +5 -4
- package/src/data/client.ts +16 -4
- package/supabase/config.toml +7 -2
- package/supabase/migrations/{0001_initial.sql → 20260425155514_selva_initial.sql} +314 -233
- package/supabase/migrations/{0002_definition_version_schema.sql → 20260529202220_selva_definition_version_schema.sql} +1 -1
package/supabase/config.toml
CHANGED
|
@@ -8,8 +8,13 @@ project_id = "selva-supabase-provider"
|
|
|
8
8
|
[api]
|
|
9
9
|
enabled = true
|
|
10
10
|
port = 54321
|
|
11
|
-
# Exposed REST schemas. `
|
|
12
|
-
#
|
|
11
|
+
# Exposed REST schemas. `selva` (where all Selva tables live, isolated from a
|
|
12
|
+
# consuming app's `public`) is intentionally NOT listed here: PostgREST loads
|
|
13
|
+
# this config at stack boot, *before* migrations run, so naming a not-yet-created
|
|
14
|
+
# schema fails the health check and aborts `supabase start`. Instead the initial
|
|
15
|
+
# migration exposes `selva` via `alter role authenticator set pgrst.db_schemas`
|
|
16
|
+
# once the schema exists. A hosted project that boots from a snapshot already
|
|
17
|
+
# containing `selva` may also add it here directly.
|
|
13
18
|
schemas = ["public", "graphql_public"]
|
|
14
19
|
extra_search_path = ["public", "extensions"]
|
|
15
20
|
max_rows = 1000
|