I just posted an answer on stackoverflow. Hope it helps!

Regards
Jon

On 2 August 2011 00:04, Ben <[email protected]> wrote:
> I believe this is the same problem:
> http://stackoverflow.com/questions/6904298/no-such-table-error-from-sqlite-memory-db-via-datamapper
>
> On Jul 25, 2:56 pm, Ben <[email protected]> wrote:
>> Hey all, I'm having a problem with using DataMapper and an in-memory
>> SQLite table to import data.
>>
>> Everything gets setup and initialized properly (DataMapper.setup,
>> DataMapper.finalize!, DataMapper.auto_migrate!). One thing worth
>> noting is this is not the :default repository in this app. After
>> setup, I can run queries on that class, etc (obviously returning
>> nothing yet). When I try to import my data, it churns for a while,
>> memory use increases, and it _seems_ as if everything is happening
>> properly.
>>
>> After finishing the importing (no errors), I try to do a simple
>> ImportClass.count, and I get a "DataObjects::SyntaxError: no such
>> table" error.
>>
>> Where did the table go? I've never used SQLite in memory before,
>> should I look there for the problem or could this be a DataMapper
>> problem?
>>
>> Thanks,
>> Ben
>
> --
> 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.
>
>

-- 
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