Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ashikawa – A Ruby Driver for ArangoDB
Search
Lucas Dohmen
November 16, 2012
Programming
0
270
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
Share
More Decks by Lucas Dohmen
See All by Lucas Dohmen
Frontend Architecture
moonglum
1
68
Weird Parts
moonglum
0
81
Webanwendungen – Eine Frage des Stils
moonglum
0
260
AdequateJS: Where should I run my Code?
moonglum
0
46
Per Anhalter durch JavaScript
moonglum
0
140
Architectures for Modern Web Front Ends
moonglum
2
470
Per Anhalter durch JavaScript
moonglum
0
180
Architectures for Modern Web Front Ends
moonglum
0
100
AdequateJS: Wie viel JavaScript darf es denn sein?
moonglum
1
360
Other Decks in Programming
See All in Programming
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
120
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
イベント駆動で成長して委員会
happymana
1
320
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.1k
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
24k
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
330
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
330
RubyLSPのマルチバイト文字対応
notfounds
0
120
CSC509 Lecture 12
javiergs
PRO
0
160
subpath importsで始めるモック生活
10tera
0
300
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
920
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
The Invisible Side of Design
smashingmag
298
50k
Ruby is Unlike a Banana
tanoku
97
11k
Writing Fast Ruby
sferik
627
61k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Typedesign – Prime Four
hannesfritz
40
2.4k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
KATA
mclloyd
29
14k
Building Adaptive Systems
keathley
38
2.3k
Scaling GitHub
holman
458
140k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Transcript
by Frank Celler and Lucas Dohmen Aran oDB & Ashikawa
Workshop Part 2: Ashikawa
Ashikawa • Ruby Gems for Aran oDB • Ashikawa::Core •
Ashikawa::AR • DataMapper 2?
Ashikawa::Core • Low Level Driver for Aran oDB • Abstracts
the REST interface of Aran oDB • Basis for the other ems gem install ashikawa-core
Ashikawa::AR • Implements the Active Record pattern • Inte rates
with Rails • Used on happy- eoco.de Rails Rumble Project gem install ashikawa-ar
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
Ok, let‘s o
Ashikawa::Core
Aran oDB started? ;)
gem install ashikawa-core
require "ashikawa-core" db = Ashikawa::Core::Database.new "127.0.0.1:8529" my_collection = db["stuff"] my_collection
<< { name: "Test", something: "cool" } p my_collection.all.first.to_hash
• Access Aran oDB at a low level • More
on rubydoc.info • Just search for ashikawa-core What can you do?
Ashikawa::AR
Setup a new Rails App rails new --skip-active-record Add ashikawa-ar,
~> 0.1.2 to you emfile
YourApplicationName::Application.configure do # ... # ArangoDB configuration Ashikawa::AR.setup :default, "127.0.0.1:8529"
end Confi ure your DB Confi uration via database.yml already planned ;)
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
• 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?
@moonbeamlabs @aran odb triAGENS/ashikawa-core triAGENS/ashikawa-ar lucas@aran odb.or ashikawa@ oo le
roups.com Contact …or just find us this weekend :)