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
290
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
96
Weird Parts
moonglum
0
110
Webanwendungen – Eine Frage des Stils
moonglum
0
300
AdequateJS: Where should I run my Code?
moonglum
0
86
Per Anhalter durch JavaScript
moonglum
0
200
faucet-pipeline
moonglum
0
32
Architectures for Modern Web Front Ends
moonglum
2
490
Per Anhalter durch JavaScript
moonglum
0
220
Architectures for Modern Web Front Ends
moonglum
0
140
Other Decks in Programming
See All in Programming
ビルドプロセスをデバッグしよう!
yt8492
0
310
All(?) About Point Sets
hole
0
150
Java_プロセスのメモリ監視の落とし穴_NMT_で見抜けない_glibc_キャッシュ問題_.pdf
ntt_dsol_java
0
200
The Missing Link in Angular's Signal Story: Resource API and httpResource
manfredsteyer
PRO
0
130
PHPライセンス変更の議論を通じて学ぶOSSライセンスの基礎
matsuo_atsushi
0
150
Building AI with AI
inesmontani
PRO
0
190
自動テストのアーキテクチャとその理由ー大規模ゲーム開発の場合ー
segadevtech
2
1k
例外処理を理解して、設計段階からエラーを見つけやすく、起こりにくく #phpconfuk
kajitack
12
6.1k
乱雑なコードの整理から学ぶ設計の初歩
masuda220
PRO
31
13k
Web エンジニアが JavaScript で AI Agent を作る / JSConf JP 2025 sponsor session
izumin5210
4
1.7k
自動テストを活かすためのテスト分析・テスト設計の進め方/JaSST25 Shikoku
goyoki
3
680
ノーコードからの脱出 -地獄のデスロード- / Escape from Base44
keisuke69
0
710
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
320
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
670
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Rebuilding a faster, lazier Slack
samanthasiow
84
9.3k
BBQ
matthewcrist
89
9.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
How to Ace a Technical Interview
jacobian
280
24k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
24
1.6k
GitHub's CSS Performance
jonrohan
1032
470k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
How to train your dragon (web standard)
notwaldorf
97
6.4k
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 :)