"ActiveDocument" discussion #741
johnnyshields
started this conversation in
General
Replies: 1 comment 5 replies
-
@andrykonchin @pboling update on this--I've created activedocument/activedocument repo and I've also secured the gem ownership for activedocument. Mongoid is far more full-featured than Dynamoid so I will be using it as a base. On the flip-side, much of Mongoid is bloated and needlessly complex, so I plan to refactor much of it but keep all the test-cases. Roadmap is here, please let me know if you're interested to help out. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As proposed in this issue, I'd like to start a discussion on building "ActiveDocument", which would be a database-agnostic Ruby ODM framework for document-based databases analogous to ActiveRecord. Target databases would include:
Core ideas:
ActiveDocument::Document
class will model fields and relations in a DB-agnostic manner. Fields will have a type definition, and embedded documents will also be supported..where
,.gt
,.lt
etc. will be supported, but there will also be language-specific query operators as well such as.where(name: { "$in" => ["Bob", "Jim"])
for MongoDB.I'm a frequent contributor to Mongoid (we use it at TableCheck) which Dynamoid was originally forked from. Starting the project as a merger between Mongoid and Dynamoid might be a good entry point.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions