tags:

views:

169

answers:

3

Hi,

A bit confused, I was watching some video where some guy was using sqllite as an in-memory database. From the sqllite.org site it seems as though it is a real db?

Can it be both or is the in-memory db that I saw something else? (used with NUnit).

+5  A: 

Have a read of this

Sqlite is a real embedded DB which is used in lots and lots of places (including the iphone and firefox) the apis allow you to specify if you want to hold your db in memory.

Sam Saffron
+2  A: 

Yes, just use ":memory:" as the database path.

finnw
+2  A: 

Yes, it can be either an in-memory or an on-disk database. Use it as normal, but with a filename of :memory: to stop it from writing to disk.