Adding encryption support

This commit is contained in:
Hamdy Khalil 2011-08-17 01:34:55 +03:00
parent 720a7f1aea
commit 813bffbd4e

View file

@ -36,6 +36,7 @@ Sample Usage
Bdb::DB_INIT_LOCK | # Initialize locking.
Bdb::DB_INIT_LOG | # Initialize logging
Bdb::DB_INIT_MPOOL # Initialize the in-memory cache.
env.encrypt = 'yourpassword'
env.open(File.join(File.dirname(__FILE__), 'tmp'), env_flags, 0);
db = env.db