RDDB面向文檔的數(shù)據(jù)庫
RDDB 是一個 Ruby 開發(fā)的面向文檔的數(shù)據(jù)庫系統(tǒng),其靈感來自 CouchDB。
示例代碼:
# First create an database object
database = Rddb::Database.new
# Put some documents into it
database << {:name => 'John', :income => 35000}
database << {:name => 'Bob', :income => 40000}
database << {:name => 'Jim', :income => 37000}
# Create a view that will return the names
database.create_view('names') do |document, args|
document.name
end
# The result of querying will return an array of names
assert_equal ['John','Bob','Jim'], database.query('names')評論
圖片
表情
