Active Record has a method called connected?
that returns true if Active Record is connected. Is there an equivalent for DataMapper? I can't find anything in the API docs. And if not, what is the most proper solution to check this?
Asked
Active
Viewed 200 times
0

vermin
- 1,099
- 2
- 11
- 17
-
This information is adapter specific. Can you tell us about the adapter you use? – mbj Jan 19 '13 at 13:13
1 Answers
0
DataMapper is multi-adapter ORM and expects each adapter to maintain connection to it's database. Some adapters even have no connection, like yaml or in-memory. So, generally, you can't know if DataMapper connected or not.

ujifgc
- 2,215
- 2
- 19
- 21