fastogt / fastonosql

FastoNoSQL is a crossplatform Redis, Memcached, SSDB, LevelDB, RocksDB, UnQLite, LMDB, ForestDB, Pika, Dynomite, KeyDB GUI management tool.
https://fastonosql.com
GNU General Public License v3.0
1.18k stars 97 forks source link

LMDB single file support #46

Closed topilski closed 6 years ago

topilski commented 6 years ago

Hi!Is there any reason why FastoNoSQL has very old LMDB version compiled in?About states: 0.9.70. I think this is 0.9.7 which was released about 4 years ago.https://github.com/LMDB/lmdb/releases/tag/LMDB_0.9.7Current version is 0.9.21 and FastoNoSQL has problems reading new databases.Even connection test fails. Shows message:Fail open database: MDB_INVALID. File is not an LMDB file.Also it's seems that FastoNoSQL supports opening by dir only.LMDB provides option to pass full path to MDB file, so in single dir there can be more databases.http://www.lmdb.tech/doc/group__mdb.htmlmdb_env_open()MDB_NOSUBDIR By default, LMDB creates its environment in a directory whose pathname is given in path, and creates its data and lock files under that directory.With this option, path is used as-is for the database main data file. The database lock file is the path with "-lock" appended.

topilski commented 6 years ago

Also implemented here: 177e2c160e026e07ea7046bde0d6ecf3feb96c41