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
130
Ember Data: (Advanced) Patterns
tchak
2
220
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
shadcn/uiを使ってReactでの開発を加速させよう!
lef237
0
300
ecspresso, ecschedule, lambroll を PipeCDプラグインとして動かしてみた (プロトタイプ) / Running ecspresso, ecschedule, and lambroll as PipeCD Plugins (prototype)
tkikuc
2
1.9k
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
410
선언형 UI에서의 상태관리
l2hyunwoo
0
270
Azure AI Foundryのご紹介
qt_luigi
1
210
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.3k
PHPカンファレンス 2024|共創を加速するための若手の技術挑戦
weddingpark
0
140
知られざるDMMデータエンジニアの生態 〜かつてツチノコと呼ばれし者〜
takaha4k
1
510
HTML/CSS超絶浅い説明
yuki0329
0
190
良いユニットテストを書こう
mototakatsu
11
3.6k
どうして手を動かすよりもチーム内のコードレビューを優先するべきなのか
okashoi
3
890
AWSのLambdaで PHPを動かす選択肢
rinchoku
2
390
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
What's in a price? How to price your products and services
michaelherold
244
12k
A better future with KSS
kneath
238
17k
Embracing the Ebb and Flow
colly
84
4.5k
Facilitating Awesome Meetings
lara
51
6.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
A Tale of Four Properties
chriscoyier
157
23k
Mobile First: as difficult as doing things right
swwweet
222
9k
BBQ
matthewcrist
85
9.4k
Code Reviewing Like a Champion
maltzj
521
39k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
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 ?