mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
* Support showing views in database tables page * Support showing materialized views in database tables page * Support showing foreign tables in database tables page * Prevent deleting non table entities in database/tables, consistent with table editor * Fix invalidation logic when deleting tables in database/tables
8 lines
417 B
TypeScript
8 lines
417 B
TypeScript
export const materializedViewKeys = {
|
|
list: (projectRef: string | undefined) => ['projects', projectRef, 'materializedViews'] as const,
|
|
listBySchema: (projectRef: string | undefined, schema: string) =>
|
|
[...materializedViewKeys.list(projectRef), schema] as const,
|
|
materializedView: (projectRef: string | undefined, id: number | undefined) =>
|
|
['projects', projectRef, 'materializedViews', id] as const,
|
|
}
|