Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration option for struct_namespace #609

Open
mereghost opened this issue Sep 15, 2020 · 0 comments
Open

Configuration option for struct_namespace #609

mereghost opened this issue Sep 15, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@mereghost
Copy link

During the rom container setup, if would be very useful to have a struct_namespace setting so that we don't need to pass this to Repositories/Relations.

Another idea is that this could be part of auto_registration under a certain directory (I'm biased towards Entities :p )

Examples

config = ROM::Configuration.new(:sql, 'sqlite::memory:')
config.struct_namespace SomeConstant::Maybe::MultiLevel

This would reduce the amount of boilerplate when setting up repositories & relations needed. Of course, a local call to struct_namespace should have precedence (for folks who split theirs entities into a bunch of different namespaces).

@solnic solnic self-assigned this Jan 12, 2021
@solnic solnic added this to the 6.0.0 milestone Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants