Adding encryption support

master
Hamdy Khalil 2011-08-17 01:34:55 +03:00
parent 720a7f1aea
commit 813bffbd4e
1 changed files with 1 additions and 0 deletions

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