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
Ember Data
Search
Paul Chavard
May 30, 2012
Programming
11
810
Ember Data
Paul Chavard
May 30, 2012
Tweet
Share
More Decks by Paul Chavard
See All by Paul Chavard
Le Tour du monde en quatre-vingts jours
tchak
1
32
Functional Ember
tchak
0
270
HTTP
tchak
3
180
Ember Data REBOOT
tchak
0
120
Ember Data: (Advanced) Patterns
tchak
2
210
EmberJS Introduction
tchak
1
190
From SproutCore to Ember
tchak
2
240
Ember.js
tchak
11
1.6k
Other Decks in Programming
See All in Programming
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
270
Ruby Function Composition
bkuhlmann
1
330
Anthropic Cookbook のおすすめレシピ
schroneko
7
980
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
380
Elm Form Validation
bkuhlmann
0
510
Java 22 Overview
kishida
1
180
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
ONE WEDGE_company_guide
1wedge_one
0
490
雑に思考を整理する技術と効能
konifar
60
29k
"config" ってなんだ? / What is "config"?
okashoi
0
240
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
430
Featured
See All Featured
Ruby is Unlike a Banana
tanoku
96
10k
Bash Introduction
62gerente
604
210k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
2
1.3k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
Writing Fast Ruby
sferik
621
60k
Fantastic passwords and where to find them - at NoRuKo
philnash
37
2.5k
Fireside Chat
paigeccino
21
2.6k
Documentation Writing (for coders)
carmenintech
60
3.9k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.1k
Atom: Resistance is Futile
akmur
259
25k
BBQ
matthewcrist
80
8.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
Transcript
Ember Data
Paul Chavard capitainetrain.com
Capitaine Train recrute!
ALPHA !
DS.Store
✓ store = DS.Store.create() ✓ store.createRecord(App.Person) ✓ store.find(App.Person, 42) ✓
store.findAll(App.Person) ✓ store.findQuery(App.Person, {name: ‘Paul’}) ✓ store.filter(App.Person, function(data) {})
DS.Model
✓ App.Person = DS.Model.create() ✓ DS.attr(“string”) ✓ DS.attr(“number”) ✓ DS.attr(“boolean”)
✓ DS.attr(“date”)
✓ DS.hasMany(“App.Person”) ✓ DS.belongsTo(“App.Person”) ✓ DS.hasMany(“App.Person”, {embedded: true})
✓ record = App.Person.createRecord({name: “Paul”}) ✓ record.set(“name”, “Paul Chavard”) ✓
record.incrementProperty(“age”) ✓ record.deleteRecord()
DS.Transaction
✓ transaction = store.transaction() ✓ transaction.add(record) ✓ transaction.rollback() ✓ transaction.commit()
DS.Adapter
✓ adapter.find(store, type, id) ✓ adapter.findAll(store, type) ✓ adapter.createRecord(store, type,
record) ✓ adapter.updateRecord(store, type, record) ✓ adapter.deleteRecord(store, type, record)
DS.RESTAdapter
Active Model Serializers github.com/josevalim/active_model_serializers
Demo gist.github.com/2835387 github.com/tchak/colors-demo colors-demo.herokuapp.com
Ember Meetup www.meetup.com/EmberJS-Paris
twitter @emberjs github @emberjs IRC #emberjs emberjs.org
twitter @tchak13 github @tchak talks.tchak.net
thanks ! questions ?