Files
supabase/apps/studio/data/tables/keys.ts
T
Ivan Vasilov b6d8e770fa fix: Don't fetch columns when fetching tables by default (#20157)
* Only fetch the tables from the required schema in the MetaStore.

* Don't include the columns in the getTables API call unless a flag is passed.

* Use the new flag in the ForeignKeySelector.

* Columns should be included for the schema visualizer.

* Address comments.
2024-01-09 17:39:40 +01:00

10 lines
368 B
TypeScript

export const tableKeys = {
list: (
projectRef: string | undefined,
schema: string | undefined,
includeColumns?: boolean | undefined
) => ['projects', projectRef, 'tables', { schema, includeColumns: !!includeColumns }] as const,
table: (projectRef: string | undefined, id: number | undefined) =>
['projects', projectRef, 'tables', id] as const,
}