OpenKitten / Meow

MongoDB object persistence for Swift
MIT License
66 stars 3 forks source link

Multiple databases #17

Closed euwars closed 5 years ago

euwars commented 6 years ago

In my project i have multiple services and each service has its own separate database and collections for security reasons. So i would love to still be able to use Meow when models have separated databases not just collections :)

Joannis commented 6 years ago

This is currently unsupported. But you can set a collection on a model manually using static let collection = <my-mongodb-collection>

I did not test this, but it should work

euwars commented 6 years ago

Yes, i'm aware of collections.

Joannis commented 6 years ago

Does it work?

Joannis commented 5 years ago

Fixed in Meow 2.0