# `Electric.ShapeCache.ShapeStatus.ShapeDb.PoolRegistry`
[🔗](https://github.com/electric-sql/electric/tree/%40core/sync-service%401.6.2/packages/sync-service/lib/electric/shape_cache/shape_status/shape_db/pool_registry.ex#L1)

Manages pool registration for a stack. Contains the `exclusive_mode` logic,
so that when enabled, the same write connection is returned for reads and
writes.

In `exclusive_mode` only the writer pool is started by the supervisor.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `pool_name`

Used by ShapeDb to retrieve a pool.

# `pool_name`

Used by pool processes for registration. The `exclusive?` boolean is passed
onto the `register_name/2` call and determines whether the connection is
registered for both reads and writes in `exclusive_mode`.

# `register_name`

# `start_link`

# `unregister_name`

# `whereis_name`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
