<!--
title: Clear database configuration examples
domain: app-frameworks
topic: Database
language: Other
source: quarkusio/quarkus
updated: 2025-05-05
url: https://awesomereviewers.com/reviewers/quarkus-clear-database-configuration-examples/
-->

Database configuration examples in documentation should be correct, minimal, and include proper context. Provide only essential configuration properties rather than defaults or environment-specific values that would change in production. Use proper syntax and be precise about component interactions.

For configuration properties, always use the correct syntax:
```properties
# Good: Using proper equals sign syntax
quarkus.datasource."named-datasource".reactive = true
quarkus.datasource."named-datasource".db-kind = postgresql

# Bad: Using incorrect comma syntax
quarkus.datasource."named-datasource".reactive", true
quarkus.datasource."named-datasource".db-kind", postgresql
```

When documenting multiple database access approaches (like Hibernate ORM and Hibernate Reactive), clearly explain their boundaries:

```properties
# Note: When using both ORM and Reactive, they won't share the same persistence context
# It's recommended to use ORM in blocking endpoints, and Reactive in reactive endpoints
```

For complex configurations like transaction recovery, include explanatory notes about the consequences of configuration choices:

```properties
# Only disable recovery if you understand the implications
# May result in data loss if disabled incorrectly
quarkus.datasource.jdbc.enable-recovery = false
```

Organize related examples in dedicated sections rather than mentioning capabilities in passing or pointing to test code, which can confuse users.
