I came across the need to define a secondary repository, to access a set
of data handled by another application. Now, there are two things I
couldn't find in the API docs.
One, can I set a model to belong to a
certain repository, in the model declaration, so it doesn't get created
elsewhere upon running migrations, and so I don't have to wrap all calls
to it with DataMapper.repository()?
And two, since I'm accessing data handled by another app, it would
certainly be handy if the models I create for this could be read-only.
Any input is greatly apreciated.