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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Lucas Dohmen
November 16, 2012
Programming
0
300
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
120
Weird Parts
moonglum
0
120
Webanwendungen – Eine Frage des Stils
moonglum
0
300
AdequateJS: Where should I run my Code?
moonglum
0
96
Per Anhalter durch JavaScript
moonglum
0
210
faucet-pipeline
moonglum
0
38
Architectures for Modern Web Front Ends
moonglum
2
490
Per Anhalter durch JavaScript
moonglum
0
240
Architectures for Modern Web Front Ends
moonglum
0
150
Other Decks in Programming
See All in Programming
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
120
Patterns of Patterns
denyspoltorak
0
1.4k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
310
Grafana:建立系統全知視角的捷徑
blueswen
0
330
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
470
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
組織で育むオブザーバビリティ
ryota_hnk
0
180
AI & Enginnering
codelynx
0
110
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7k
How to train your dragon (web standard)
notwaldorf
97
6.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
Rails Girls Zürich Keynote
gr2m
96
14k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
180
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
100
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
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 :)