Files
Alaister YoungandJoshen 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

10 lines
456 B
TypeScript

export const replicaKeys = {
list: (projectRef: string | undefined) => ['project', projectRef, 'replicas'] as const,
statuses: (projectRef: string | undefined) =>
['project', projectRef, 'replicas-statuses'] as const,
loadBalancers: (projectRef: string | undefined) =>
['project', projectRef, 'load-balancers'] as const,
replicaLag: (projectRef: string | undefined, id: string) =>
['project', projectRef, 'replica-lag', id] as const,
}