lunarmodules / luasql

LuaSQL is a simple interface from Lua to a DBMS.
http://lunarmodules.github.io/luasql
545 stars 191 forks source link

fix memory db connection creating and using file based db #70

Closed IR4T4 closed 7 years ago

IR4T4 commented 7 years ago

This isn't documented well @ http://www.sqlite.org/inmemorydb.html since sqlite3_open() is obsolete. SQLITE_OPEN_CREATE flag avoids the usage of pure memory databases. If this flag is set a db file is created and referenced. SQLITE_OPEN_MEMORY flag works as expected.

Is there any info about line 577? I would like to add an argument for all possible flags (see sqlite3.h 'Flags For File Open Operations') but args 4 doesn't seem to be future-proof.