Adding encryption support
This commit is contained in:
parent
720a7f1aea
commit
813bffbd4e
|
@ -36,6 +36,7 @@ Sample Usage
|
||||||
Bdb::DB_INIT_LOCK | # Initialize locking.
|
Bdb::DB_INIT_LOCK | # Initialize locking.
|
||||||
Bdb::DB_INIT_LOG | # Initialize logging
|
Bdb::DB_INIT_LOG | # Initialize logging
|
||||||
Bdb::DB_INIT_MPOOL # Initialize the in-memory cache.
|
Bdb::DB_INIT_MPOOL # Initialize the in-memory cache.
|
||||||
|
env.encrypt = 'yourpassword'
|
||||||
env.open(File.join(File.dirname(__FILE__), 'tmp'), env_flags, 0);
|
env.open(File.join(File.dirname(__FILE__), 'tmp'), env_flags, 0);
|
||||||
|
|
||||||
db = env.db
|
db = env.db
|
||||||
|
|
Loading…
Reference in a new issue