Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ashikawa – A Ruby Driver for ArangoDB

Lucas Dohmen
November 16, 2012

Ashikawa – A Ruby Driver for ArangoDB

Slides for the workshop I gave with Frank Celler. This is only the Ruby Part ;)

Lucas Dohmen

November 16, 2012
Tweet

More Decks by Lucas Dohmen

Other Decks in Programming

Transcript

  1. Ashikawa::Core • Low Level Driver for Aran oDB • Abstracts

    the REST interface of Aran oDB • Basis for the other ems gem install ashikawa-core
  2. Ashikawa::AR • Implements the Active Record pattern • Inte rates

    with Rails • Used on happy- eoco.de Rails Rumble Project gem install ashikawa-ar
  3. Data Mapper 2 • Not yet • Implements the Data

    Mapper pattern • Will support various data sources • If you want to know more, o to Piotr Solnica‘s talk this weekend :( • We will work on the support of Aran oDB
  4. • Access Aran oDB at a low level • More

    on rubydoc.info • Just search for ashikawa-core What can you do?
  5. class MyFineModel include Ashikawa::AR::Model attribute :name attribute :my_attribute attribute :my_string,

    String end # Somewhere else... model = MyFineModel.by_example name: "Johnny" rails ashikawa:model NAME attribute attribute2:Strin
  6. • Define attributes via virtus • Validate attributes via aequitas

    • Find: all, by_example, find_by_aql… • Delete, reload, save, update_attributes… • More on rubydoc.info • Just search for ashikawa-ar What can you do?