I’m a Thai student. My teacher ordered me to use Berkeley DB in the term
project. I saw in BDB website that BDB is worked with Ruby but I don’t
have any idea to connect it.
Anyone knows how to connect it? I’ve used mysql in the last project. Now
I want to know is it work if I’ll use BDB with Ruby?
Siratinee S. wrote:
I’m a Thai student. My teacher ordered me to use Berkeley DB in the term
project. I saw in BDB website that BDB is worked with Ruby but I don’t
have any idea to connect it.
Anyone knows how to connect it? I’ve used mysql in the last project. Now
I want to know is it work if I’ll use BDB with Ruby?
Try tu use dbm (This is a Ruby extension to DBM library (including
Berkley DB’s DBM))
This is example code:
ruby dbm acess
require “dbm”
d = DBM.open(“test”)
keys = d.keys
if keys.length > 0 then
for k in keys; print k, “\n”; end
for v in d.values; print v, “\n”; end
else
d[‘foobar’] = ‘FB’
d[‘baz’] = ‘BZ’
d[‘quux’] = ‘QX’
end
On Aug 13, 2008, at 21:26 PM, Siratinee S. wrote:
I’m a Thai student. My teacher ordered me to use Berkeley DB in the
term
project. I saw in BDB website that BDB is worked with Ruby but I don’t
have any idea to connect it.
Anyone knows how to connect it? I’ve used mysql in the last project.
Now
I want to know is it work if I’ll use BDB with Ruby?
There are these packages:
http://moulon.inra.fr/ruby/bdb1.html
http://moulon.inra.fr/ruby/bdb.html
Siratinee S. wrote:
I’m a Thai student. My teacher ordered me to use Berkeley DB in the term
project. I saw in BDB website that BDB is worked with Ruby but I don’t
have any idea to connect it.
Anyone knows how to connect it? I’ve used mysql in the last project. Now
I want to know is it work if I’ll use BDB with Ruby?
Anyone can help me more?
I still have no idea for solve this problem… 
Eric H. wrote:
On Aug 13, 2008, at 21:26 PM, Siratinee S. wrote:
I’m a Thai student. My teacher ordered me to use Berkeley DB in the
term
project. I saw in BDB website that BDB is worked with Ruby but I don’t
have any idea to connect it.
Anyone knows how to connect it? I’ve used mysql in the last project.
Now
I want to know is it work if I’ll use BDB with Ruby?
There are these packages:
http://moulon.inra.fr/ruby/bdb1.html
http://moulon.inra.fr/ruby/bdb.html
The links for download is not working right now!!