# `PhoenixKit.Install.DbConnectionCheck`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.87/lib/phoenix_kit/install/db_connection_check.ex#L1)

Simple database connection check for PhoenixKit installation.

# `connected?`

```elixir
@spec connected?() :: boolean()
```

Returns `true` if the configured repo can reach the database, `false` otherwise.

# `ensure_connected!`

```elixir
@spec ensure_connected!() :: :ok | no_return()
```

Verifies database connectivity, exiting with a user-friendly error on failure.

Returns `:ok` when the database is reachable.

---

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