Determining database plugin at runtime
Determining database plugin at runtime
- Subject: Determining database plugin at runtime
- From: Paul Hoadley <email@hidden>
- Date: Sat, 30 Mar 2013 17:06:16 +1030
Hello,
I (think I) want to determine what plugin is in use for a particular model at runtime. What's the easiest way? (I see EOAdaptor.pluginName(), but, somewhat embarrassingly, I can't quite work out how to get the EOAdaptor object for a model.)
(This relates to my recent thread "Disable constraint checking under H2". I want to do exactly that: at runtime, if the H2 plugin is in use, I'll run "SET REFERENTIAL_INTEGRITY FALSE;". If anyone can suggest a better way to do that conditional on running H2, I'm all ears.)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden