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
260
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
58
Weird Parts
moonglum
0
78
Webanwendungen – Eine Frage des Stils
moonglum
0
250
AdequateJS: Where should I run my Code?
moonglum
0
39
Per Anhalter durch JavaScript
moonglum
0
120
Architectures for Modern Web Front Ends
moonglum
2
460
Per Anhalter durch JavaScript
moonglum
0
150
Architectures for Modern Web Front Ends
moonglum
0
80
AdequateJS: Wie viel JavaScript darf es denn sein?
moonglum
1
310
Other Decks in Programming
See All in Programming
Runtime Objects in Rust
mitsuhiko
0
220
Sheets API使ってみた
toshi0383
2
180
2024 コーディング研修
ckazu
2
650
AmperとFleetを使ったAndroidアプリ
yoppie
0
300
Jetpack Composeとデザインシステム
rmakiyama
0
230
TypeScriptでもLLMアプリケーション開発 / LLM Application In Typescript
rkaga
5
1.3k
otelcol receiver 自作RTA / Pepabo Tech Conference #22 春のSREまつり
arthur1
0
930
チーム立ち上げにAWSを活用したらClaudeさんに褒められた話
mkdev10
3
230
Let's learn code review
riofujimon
2
640
GitLab CI/CD で C#/WPFアプリケーションのテストとインストーラーのビルド・デプロイを自動化する
hacarus
0
610
mb_trim関数を作りました
youkidearitai
PRO
1
210
ペパボOpenTelemetry革命
pyama86
2
1k
Featured
See All Featured
Teambox: Starting and Learning
jrom
128
8.4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
83
45k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
Building Your Own Lightsaber
phodgson
100
5.7k
Rebuilding a faster, lazier Slack
samanthasiow
74
8.3k
Visualization
eitanlees
137
14k
The Pragmatic Product Professional
lauravandoore
26
5.9k
Bash Introduction
62gerente
605
210k
A Tale of Four Properties
chriscoyier
153
22k
Embracing the Ebb and Flow
colly
80
4.2k
Practical Orchestrator
shlominoach
183
9.8k
Rails Girls Zürich Keynote
gr2m
91
13k
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 :)