It looks like DM is keeping the original connection if its setup parameters
are the same.  You could timestamp your db's filename, or here's a hack
work-around for the second call to setup:

DataMapper.setup(:default, "sqlite3:///tmp/dm.db?#{rand}")

--Curtis

On Thu, Dec 18, 2008 at 7:40 AM, Earle Clubb <[email protected]> wrote:

>
> That doesn't work.  I tried re-setting up and got the same results.
> Here's the new code I tried: http://pastie.org/342259
>
> Earle
>
> Michael Klishin wrote:
> >
> > On 18.12.2008, at 0:34, Earle Clubb wrote:
> >
> >> Is there a way to reset DM's connection to the db?
> >
> >
> > Just call setup method one more time with the same repository name.
> >
> > MK
> >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to