From c5e84e15b1180fef0085336215f4e39396301848 Mon Sep 17 00:00:00 2001 From: linkouth <34433986+linkouth@users.noreply.github.com> Date: Fri, 28 Feb 2025 17:43:30 +0300 Subject: [PATCH] Update link in README.md Update Dispatcher class link from internal on public one --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 029303b..b094f0a 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ The `initDB` constructor exports three elements: `db`, `CoreBaseModel`, and `hel ### db -`db`: Instance of the [PGDispatcher](https://github.yandex-team.ru/data-ui/postgreskit/blob/master/lib/dispatcher.ts) module responsible for primary/replica connection balancing. Under the hood, this module creates N instances of knex (N is the number of hosts passed in `connectionString`). From these instances, it polls the database hosts every `healthcheckInterval` milliseconds, requesting if they are primary hosts or replica hosts (using the `SELECT pg_is_in_recovery()` query). +`db`: Instance of the [PGDispatcher](https://github.com/gravity-ui/postgreskit/blob/main/lib/dispatcher.ts) module responsible for primary/replica connection balancing. Under the hood, this module creates N instances of knex (N is the number of hosts passed in `connectionString`). From these instances, it polls the database hosts every `healthcheckInterval` milliseconds, requesting if they are primary hosts or replica hosts (using the `SELECT pg_is_in_recovery()` query). Public `db` methods: