mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 18:35:07 +03:00
* 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.
10 lines
368 B
TypeScript
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,
|
|
}
|