On 8/7/06, citizenkahn <[EMAIL PROTECTED]> wrote:
>
> Can you direct me to an example or documentation because I'd never used
> an sqlite in memory db before?
>
> If there isn't one, point me at a wiki and I'll write one up (once I
> figure out how to do it with some help hopefully)?

Basically, in your sqlite connection string, you use the special
filename ":memory:" (a colon, the word "memory", and another colon)
instead of a filename. That creates an in-memory db which acts exactly
as a "normal", file-based sqlite db would, except for two things:

1) It's much faster, and
2) It goes away when your process terminates.

In other words, it's perfect for automated testing.

-- 
Robin Munn
[EMAIL PROTECTED]
GPG key 0xD6497014

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to