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
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
110
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
37
Architectures for Modern Web Front Ends
moonglum
2
490
Per Anhalter durch JavaScript
moonglum
0
230
Architectures for Modern Web Front Ends
moonglum
0
150
Other Decks in Programming
See All in Programming
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
140
クラウドに依存しないS3を使った開発術
simesaba80
0
220
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.6k
.NET Conf 2025 の興味のあるセッ ションを復習した / dotnet conf 2025 quick recap for backend engineer
tomohisa
0
110
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.6k
Grafana:建立系統全知視角的捷徑
blueswen
0
280
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.1k
PostgreSQLで手軽にDuckDBを使う!DuckDB&pg_duckdb入門/osc25hi-duckdb
takahashiikki
0
250
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
320
Patterns of Patterns
denyspoltorak
0
460
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
410
Data-Centric Kaggle
isax1015
2
410
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.5k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
270
Un-Boring Meetings
codingconduct
0
180
Designing for humans not robots
tammielis
254
26k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
300
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Tell your own story through comics
letsgokoyo
1
780
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
47
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
ラッコキーワード サービス紹介資料
rakko
0
2M
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 :)