A
Alexey Petrushin
Is there a real working Object Database(not ORM) written in Ruby or
stable adapter to non-Ruby one?
I goggled for Ruby Object Database and found some projects, but haven't
found any real working solution.
Mainly they just serialize objects and write it to disk with id. Not
much usable.
Also i found project trying to create adapter for db4o, but it's in
pre-alpha.
Maybe i missed something? Really hope i did
What i mean for real-working? As a sample pseudo code for the Java db4o
database (very base feature, there are also a lot of functions):
class List;
attr_accessor :topics
end
class Topic
attr_accessors :name, :text
end
list = List.new
list.topics << Topic.new('fist', 'bla-bla')
list.topics << Topic.new('second', 'bla-bla')
db.put list
prototype = Topic.new('first', nil) # Matcher for search
topics = db.get prototype # topics contains all found topics
stable adapter to non-Ruby one?
I goggled for Ruby Object Database and found some projects, but haven't
found any real working solution.
Mainly they just serialize objects and write it to disk with id. Not
much usable.
Also i found project trying to create adapter for db4o, but it's in
pre-alpha.
Maybe i missed something? Really hope i did
What i mean for real-working? As a sample pseudo code for the Java db4o
database (very base feature, there are also a lot of functions):
class List;
attr_accessor :topics
end
class Topic
attr_accessors :name, :text
end
list = List.new
list.topics << Topic.new('fist', 'bla-bla')
list.topics << Topic.new('second', 'bla-bla')
db.put list
prototype = Topic.new('first', nil) # Matcher for search
topics = db.get prototype # topics contains all found topics