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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Kazunori-Kimura
June 11, 2018
Technology
620
0
Share
sequelize.pdf
sequelize と sequelize-autoの紹介
Kazunori-Kimura
June 11, 2018
More Decks by Kazunori-Kimura
See All by Kazunori-Kimura
path-parser
kazunorikimura
0
400
objectのcloneを行う/How to clone of the object in js
kazunorikimura
0
420
クライアントサイドで大きなデータを扱うときのお話/Web Worker & IndexedDB
kazunorikimura
0
700
How freelance programmer works
kazunorikimura
0
150
moment.js
kazunorikimura
0
120
Toward the world of "ready player one"
kazunorikimura
0
120
npmの便利なパッケージ: forever, winser
kazunorikimura
0
1.1k
npmの便利なパッケージ: Jest
kazunorikimura
0
160
Bootstrap4のカスタマイズ
kazunorikimura
0
240
Other Decks in Technology
See All in Technology
業務に残された「良くない型」で考える「TypeScriptの難しさ」
sajikix
3
1k
How to learn AWS Well-Architected with AWS BuilderCards: Security Edition
coosuke
PRO
0
200
最新技術を"今は選ばない"という技術選定
leveragestech
PRO
0
350
パーソルキャリア IT/テクノロジー職向け 会社紹介資料|Company Introduction Deck
techtekt
PRO
0
260
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.6k
Swift Sequence の便利 API 再発見
treastrain
1
290
AI飲み会幹事エージェントを作っただけなのに
ykimi
0
250
Agentic AI時代における メルカリのAIガバナンスとガードレール実装
naoichihara
0
110
Purview Endpoint DLP 動かしてみた
kozakigh
1
460
[みん強]AIの価値を最大化するデータ基盤戦略:Self-Service型Data Meshへの転換とAgentic AI Meshに向けた取り組み with Snowflake他
y_matsubara
1
160
AI全盛の今だからこそ、あえてもう一度振り返るAPIの基礎
smt7174
3
150
RubyでRuby拡張を書いたらRubyより35倍速になったってどういうこと??
kazuho
1
290
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
190
Between Models and Reality
mayunak
4
290
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
360
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
54k
Design in an AI World
tapps
1
210
A Tale of Four Properties
chriscoyier
163
24k
How to build a perfect <img>
jonoalderson
1
5.5k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
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Λ͏