iqlusioninc / abscissa

Application microframework with command-line option parsing, configuration, error handling, logging, and shell interactions
Apache License 2.0
569 stars 39 forks source link

What approach to take for integrating local database? #858

Open mainrs opened 8 months ago

mainrs commented 8 months ago

I read through the documentation and I am a little bit confused about Components. It seems like they define injectable resources inside the application and provide a separation of concerns mechanism for complex applications.

It feels like the database should be a component inside this framework. But I am not entirely sure how I can retrieve the component after I added it to the application. Say I have 2/5 commands that need access to the database. How would I provide them the component?

APP doesn't expose components, which was contrary to my expectation.