Skip to content

Commit

Permalink
Update link in README.md
Browse files Browse the repository at this point in the history
Update Dispatcher class link from internal on public one
  • Loading branch information
linkouth authored Feb 28, 2025
1 parent 9a832ec commit c5e84e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit c5e84e1

Please sign in to comment.