|
What this is
Other links
The source code
#!/usr/bin/ruby -I../../src -I..
$LOAD_PATH.unshift "../../src", ".."
require 'bdbxml'
require 'find'
Find::find('tmp') do |f|
File::unlink(f) if FileTest::file? f
end
env = BDB::Env.new("tmp", BDB::CREATE | BDB::INIT_TRANSACTION)
doc = env.open_xml("toto", "a")
bdb = env.open_db(BDB::Btree, "tutu", nil, "a")
2.times do |i|
doc.push("
|
Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com