Resources - Datomic/simulant GitHub Wiki
Deprecation Notice
It looks like this been subsumed by services.
Archived Content
The API does not presume any particular kind of system under test. So, it may be necessary for processes to setup (and clean up) arbitrary resources.
The "resources" function in sim.clj are intended to support this case. They provide
- a polymorphic method for creating resources at the beginning of a process
- access to those resources during the process
- a polymorphic method for clean at the end of a process
Relative to the rest the API, this has gotten little attention and little use, and may need to be completely reconsidered.