Andrew Valleteau
31aad403de
fix(studio): early fail query when x-connection-encrypted is invalid ( #35331 )
...
* fix(studio): early fail query when x-connection-encrypted is invalid
* fix(studio): uniformize readDatabase and projectDetails connString handling
* chore: update api types
* chore: add connectionString null option
* fix: only enforce x-connection-encrypted on platform
* chore: refactor connString check in a single point
* chore: fix guard logic
* chore: fix pgMetaGuard
* chore: fix types
2025-05-08 12:11:03 +02:00
Alaister Young and Joshen Lim
6c592dec99
chore: remove useExecuteSqlQuery() part 2 ( #30467 )
...
* foreign-key-constraints
* update entity-types stale time
* schemas query
* deprecate useExecuteSqlQuery
* users count query
* database size query
* indexes query
* keywords query
* migrations query
* table columns
* database functions
* database roles query
* fdws query
* replication lag query
* ongoing queries query
* vault secrets query
* remove unneeded staleTime: 0
* max connections query
* fix entity types key in tests
* Some fixes
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-11-18 05:15:37 +00:00
Alaister Young and Joshen Lim
5781937739
chore: aggressive prefetching ( #29987 )
...
* chore: aggressive prefetching
* use abort signals in prefetchers
* move encrypted columns to react-query
* prefetching for filter and sort applied
* prefetch remaining entity types
* prefetch tables in more places
* prefetch editor page on project panel
* add feature flag
* fix typescript
* nit
* Nit
* fix imports
* remove views check on encrypted schemas
* use fetchQuery instead of prefetchQuery
* fix useEncryptedColumnsQuery ts error
* filter by schema on encrypted columns
* don't use pg_get_tabledef for foreign tables
* Remove unnecesary import
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-10-24 20:59:35 +08:00
Alaister Young
8e47d317fa
chore: pg-meta functions ( #26881 )
...
* start pg-meta functions
* pg meta create function
* pg meta database functions update and delete
* fix ts
* update execute sql error type
* update execute sql error type
* remove duplicate database functions query
2024-06-03 23:21:19 +08:00
Bobbie Soedirgo and Alaister Young
f327f2b234
chore: use @supabase/pg-meta for schema mutation ( #22619 )
...
* chore: use @supabase/pg-meta for schema mutation
* fix schemas query invalidation
---------
Co-authored-by: Alaister Young <a@alaisteryoung.com >
2024-04-17 11:04:21 +07:00
Joshen Lim
1f388cc98e
Set different colors for RLS templates UPDATE and ALL, and add placeholders with using and with check monaco fields ( #22401 )
2024-04-02 14:51:35 +02:00
Bobbie Soedirgo
8888bb0023
feat: initial version of @supabase/pg-meta ( #22307 )
...
* feat: initial version of @supabase/pg-meta
Unlike supabase/postgres-meta, this will be a pure-JS SQL & Zod schema builder
* chore: typescript 5.4
* fix: typescript errors
2024-04-01 18:07:34 +08:00
Kevin Grüneberg
f9a55935f5
chore: use type imports for types/interfaces ( #21738 )
2024-03-04 20:48:22 +08:00
Alaister Young and Joshen Lim
a4f86bce8f
chore: increase react-query stale time ( #19465 )
...
* chore: increase react-query stale time
* keep staleTime: 0 for table rows
* use staleTime: 0 for all user sql queries
* use staleTime: 0 for all pg-meta queries
* Some fixes
* fix updating tables
* fix bug while editing column names
* Fix deleting column in database/tables column list not revalidating UI
* Fix updating column in database/tables column list throwing ane rror
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-02-06 13:47:05 +08:00
Ivan Vasilov
436bdb10ae
chore: Move the studio app to apps/studio ( #18915 )
...
* Move all studio files from /studio to /apps/studio.
* Move studio specific prettier ignores.
* Fix the ui references from studio.
* Fix the css imports.
* Fix all package.json issues.
* Fix the prettier setup for the studio app.
* Add .turbo folder to prettierignore.
* Fix the github workflows.
2023-11-15 12:38:55 +01:00