2009/3/5 mdipierro <[email protected]>:
>
> ignore this. On a second thought, this works but lives only for one
> call, you want something more persistent.
> It should be possible to built it with cache and sqlite:memory:

I already tried this using Pythons module caching:

    import applications.welcome.modules.ramdb
    session.connect(request, response, db=applications.welcome.modules.ramdb.db)

where applications.welcome.modules.ramdb contains

    from gluon.sql import SQLDB
    db = SQLDB('sqlite:memory:')

Unfortunately this gives a traceback due to SQLites thread
restriction.  The exception message reads:

"ProgrammingError: SQLite objects created in a thread can only be used
in that same thread.The object was created in thread id 1332 and this
is thread id 2584"

Kind regards,
Markus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to