Skip to content

Add support for adding database access either via PostgresNIO or Fluent - #31

Merged
adam-fowler merged 7 commits into
mainfrom
database
Jul 14, 2026
Merged

Add support for adding database access either via PostgresNIO or Fluent#31
adam-fowler merged 7 commits into
mainfrom
database

Conversation

@adam-fowler

@adam-fowler adam-fowler commented Jun 25, 2026

Copy link
Copy Markdown
Member

To see this working clone the template repository, checkout the database branch and call

hb init --template <path to cloned template> <target directory>

Option to add either fluent or postgres-nio support for databases

  • Adds creation of client
  • Sets up services
  • Adds migrate option --db-migrate that runs migrate and exits
  • Add .env to setup postgres database details
  • Adds docker-compose.yml which will run a Postgres database

Questions:

  • Tests require docker-compose.yml to run and have no way to provide a completely reset database. And will also require the database details in the ConfigReader. What do we want to do here? Encourage users to use the repository pattern and not setup a database client for testing?
  • Should we provide a CRUD example controller?

@adam-fowler
adam-fowler marked this pull request as draft June 26, 2026 16:20
@adam-fowler
adam-fowler marked this pull request as ready for review July 14, 2026 07:21
@adam-fowler
adam-fowler merged commit d86925c into main Jul 14, 2026
1 check passed
@adam-fowler
adam-fowler deleted the database branch July 14, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants