Sha256: ea66d401ac821f8de51c3825c8ec8c940f775195275208685a717ada82749373
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
# DbMotion Simple CoreData Adapter for RubyMotion ## Getting Started ### Create a MOM CoreData Model Create a XCode "Empty Project" add there a CoreData Model. ### Adding DbMotion to your RubyMotion project in Gemfile `gem 'DbMotion'` then run `bundle update` in AppDelegate add the following to open the specified Database: ```ruby DbMotion::Database.new.open("MyCoreDataModel_%s.mom", "MyCoreData.sqlite") ``` Search for Items in the Database: ```ruby items=DbMotion::Database.run.find_entry("Item") ``` Save something in the Database: ```ruby item=DbMotion::Database.run.create_entry("Item") item.name=form[:name] if DbMotion::Database.run.save # item saved end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
DbMotion-0.1.0 | README.md |
DbMotion-0.0.6 | README.md |
DbMotion-0.0.5 | README.md |