Spreads / Spreads.LMDB

Low-level zero-overhead and the fastest LMDB .NET wrapper with some additional native methods useful for Spreads
http://docs.dataspreads.io/spreads/libs/lmdb/api/README.html
Mozilla Public License 2.0
80 stars 9 forks source link

Allow creating single file databases using LMDBEnvironmentFlags.NoSubDir #35

Closed stangelandcl closed 3 years ago

stangelandcl commented 5 years ago

This makes it possible to create single file lmdb databases using MDB_NOSUBDIR.

It might be good to rename the "directory" parameters and variables to "path" but that changes the API.

buybackoff commented 5 years ago

Thanks! I've just recently realized that System.IO.Directory.CreateDirectory is noop if a directory already exists, so I'm removing Exists checks when I see it.