Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Ability to open database by name #8

Closed
carmas123 opened this issue Dec 9, 2018 · 2 comments
Closed

Ability to open database by name #8

carmas123 opened this issue Dec 9, 2018 · 2 comments

Comments

@carmas123
Copy link

Please can you add the ability to pass database name into "createBuilder" and not into annotation?
This can be useful to handle multiple database, regards.

@simolus3
Copy link
Owner

simolus3 commented Dec 9, 2018

Hm, this seems like a reasonable point. But I kind of wanted to move everything into the annotation and ditch the builder entirely (you can check out the development branch for some details).
Can you create another database class that inherits from your original database class but has a different value for the file name in the annotation? That should do the trick, right? But that's kind of a hack, I'll have to think of some API to accomplish this directly.

@simolus3
Copy link
Owner

simolus3 commented Mar 9, 2019

I've just published moor to replace this library. It does support multiple databases at different paths. In fact, it let's you choose any path you like :)
Feel free to check it out.

@simolus3 simolus3 closed this as completed Mar 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants