Using Berkeley DB Databases : dbm « Database « Ruby






Using Berkeley DB Databases


require 'dbm'

DBM.open('r') do |db|
  db['t'] ="W"
  db[23] = "F"
end

DBM.open('r') do |db|
  puts db['t']
  puts db['23']
end

p Dir['r.*']

 








Related examples in the same category

1.Save and retrieve data from Berkeley DB Databases
2.each loop on Berkeley DB Databases
3.Save and retrieve data from DBM