How do I create a sqllite3 in-memory database?

One of the appropriate uses for sqlite3 is "in-memory databases". This sounds like a really useful tool for my C++ applications. Does anyone have an example of how this is done in C or C++? I'm specifically looking for a canonical way to slurp several flat-files into an in-memory database, then do some joins.


It's actually quite easy. Just specify ':memory:' as the database filename when opening a database using the C/C++ API. It's a special constant that the engine will recognize. The same actually works for other languages such as Python or Ruby, since they typically just wrap the C/C++ API. See for complete details.

Need Your Help

MongoDB in the cloud hosting, benefits

mongodb amazon-ec2 cloud-hosting dotcloud joyent

Im still fighting with mongoDB and I think this war will end is not soon.

Android numberpicker, never pass from OnValueChangedListener breakpoint

android listener numberpicker

I extended the NumberPicker class, I overrided to the setOnValueChangedListener but when I debug the code and I click on the plus button of the numberpicker, it never pass in my breakpoint inside the