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
sequelize.pdf
Search
Kazunori-Kimura
June 11, 2018
Technology
0
510
sequelize.pdf
sequelize と sequelize-autoの紹介
Kazunori-Kimura
June 11, 2018
Tweet
Share
More Decks by Kazunori-Kimura
See All by Kazunori-Kimura
path-parser
kazunorikimura
0
340
objectのcloneを行う/How to clone of the object in js
kazunorikimura
0
340
クライアントサイドで大きなデータを扱うときのお話/Web Worker & IndexedDB
kazunorikimura
0
590
How freelance programmer works
kazunorikimura
0
92
moment.js
kazunorikimura
0
63
Toward the world of "ready player one"
kazunorikimura
0
63
npmの便利なパッケージ: forever, winser
kazunorikimura
0
910
npmの便利なパッケージ: Jest
kazunorikimura
0
100
Bootstrap4のカスタマイズ
kazunorikimura
0
210
Other Decks in Technology
See All in Technology
信頼性に挑む中で拡張できる・得られる1人のスキルセットとは?
ken5scal
2
530
Making your applications cross-environment - OSCG 2024 NA
salaboy
0
180
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
110
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
180
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
150
Introduction to Works of ML Engineer in LY Corporation
lycorp_recruit_jp
0
110
スクラム成熟度セルフチェックツールを作って得た学びとその活用法
coincheck_recruit
1
140
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.8k
dev 補講: プロダクトセキュリティ / Product security overview
wa6sn
1
2.3k
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
0
110
Lexical Analysis
shigashiyama
1
150
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
8.9k
For a Future-Friendly Web
brad_frost
175
9.4k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
860
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
What's new in Ruby 2.0
geeforr
343
31k
GraphQLとの向き合い方2022年版
quramy
43
13k
Facilitating Awesome Meetings
lara
50
6.1k
Building Adaptive Systems
keathley
38
2.3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Transcript
OQNͷศརͳύοέʔδ 4FRVFMJ[F TFRVFMJ[FBVUP ଜݑن
4FRVFMJ[F 03Ϛούʔ w 1PTUHSF42- w .Z42- w 42-JUF w .442-4FSWFS
IUUQEPDTTFRVFMJ[FKTDPN
αϯϓϧίʔυ const User = sequelize.define('user', { username: Sequelize.STRING, birthday: Sequelize.DATE
}); sequelize.sync() .then(() => User.create({ username: 'janedoe', birthday: new Date(1980, 6, 20) })) .then(jane => { console.log(jane.toJSON()); });
αϯϓϧίʔυ const User = sequelize.define('user', { username: Sequelize.STRING, birthday: Sequelize.DATE
}); sequelize.sync() .then(() => User.create({ username: 'janedoe', birthday: new Date(1980, 6, 20) })) .then(jane => { console.log(jane.toJSON()); }); Ϟσϧఆٛ
αϯϓϧίʔυ const User = sequelize.define('user', { username: Sequelize.STRING, birthday: Sequelize.DATE
}); sequelize.sync() .then(() => User.create({ username: 'janedoe', birthday: new Date(1980, 6, 20) })) .then(jane => { console.log(jane.toJSON()); }); ςʔϒϧ࡞
αϯϓϧίʔυ const User = sequelize.define('user', { username: Sequelize.STRING, birthday: Sequelize.DATE
}); sequelize.sync() .then(() => User.create({ username: 'janedoe', birthday: new Date(1980, 6, 20) })) .then(jane => { console.log(jane.toJSON()); }); Promiseϕʔε
αϯϓϧίʔυ const User = sequelize.define('user', { username: Sequelize.STRING, birthday: Sequelize.DATE
}); sequelize.sync() .then(() => User.create({ username: 'janedoe', birthday: new Date(1980, 6, 20) })) .then(jane => { console.log(jane.toJSON()); }); INSERTॲཧ
αϯϓϧίʔυ const User = sequelize.define('user', { username: Sequelize.STRING, birthday: Sequelize.DATE
}); await sequelize.sync(); const jane = await User.create({ username: 'janedoe', birthday: new Date(1980, 6, 20) }); console.log(jane.toJSON());
ίʔυϑΝʔετ ίʔυ͔Βςʔϒϧͷ࡞͕Մೳ 42-Λॻ͘ඞཁ͕ͳ͍
ίʔυϑΝʔετ ίʔυ͔Βςʔϒϧͷ࡞͕Մೳ 42-Λॻ͘ඞཁ͕ͳ͍ Ϟσϧఆ͕ٛ݁ߏ໘͍͘͞ ςʔϒϧ͕ଟ͋ͬͨ߹ʹख͕͔͔ؒΔ
TFRVFMJ[FBVUP "VUPNBUJDBMMZHFOFSBUFCBSFTFRVFMJ[F NPEFMTGSPNZPVSEBUBCBTF IUUQTHJUIVCDPNTFRVFMJ[FTFRVFMJ[F BVUP
%FNP TFRVFMJ[FBVUPΛ༻ͯ͠MPDBMIPTUͷTBNQMF σʔλϕʔε .Z42- ͔ΒϞσϧΛੜ ςʔϒϧ
None
·ͱΊ 4FRVFMJ[F/PEFKTͷ03Ϛούʔ 1SPNJTFϕʔε ͢Ͱʹ%#͕͋ΕTFRVFMJ[FBVUPΛ͏