Using sequelize in node.js Peter Larsson-Green

Using sequelize in node.js Peter Larsson-Green
1 / 1
Using sequelize in node.js Peter Larsson-Green - slide 1 of 17 Using sequelize in node.js Peter Larsson-Green - slide 2 of 17 Using sequelize in node.js Peter Larsson-Green - slide 3 of 17 Using sequelize in node.js Peter Larsson-Green - slide 4 of 17 Using sequelize in node.js Peter Larsson-Green - slide 5 of 17 Using sequelize in node.js Peter Larsson-Green - slide 6 of 17 Using sequelize in node.js Peter Larsson-Green - slide 7 of 17 Using sequelize in node.js Peter Larsson-Green - slide 8 of 17 Using sequelize in node.js Peter Larsson-Green - slide 9 of 17 Using sequelize in node.js Peter Larsson-Green - slide 10 of 17 Using sequelize in node.js Peter Larsson-Green - slide 11 of 17 Using sequelize in node.js Peter Larsson-Green - slide 12 of 17 Using sequelize in node.js Peter Larsson-Green - slide 13 of 17 Using sequelize in node.js Peter Larsson-Green - slide 14 of 17 Using sequelize in node.js Peter Larsson-Green - slide 15 of 17 Using sequelize in node.js Peter Larsson-Green - slide 16 of 17 Using sequelize in node.js Peter Larsson-Green - slide 17 of 17
Using sequelize in node.js Peter Larsson-Green Jönköping University Spring 2019 Object-Relational Mapping Applications often represent data as objects, e.g.: const humans id: 0, name: Alice, id: 1, name: Bob This data often

Related Topics

Download this presentation From Below

"Using sequelize in node.js Peter Larsson-Green" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Using sequelize in node.js Peter Larsson-Green
Jönköping University
Spring 2019<br>
02
Object-Relational Mapping Applications often represent data as objects, e.g.: const humans = [
{id: 0, name: "Alice"},
{id: 1, name: "Bob"}
] This data often needs to be stored in files, using some format.
An Object-Relational Mapping framework/library do that for us.
The programmer only needs to care about programming, not about the mapping 
In practice, the objects are often mapped to SQL queries. 0, Alice
1, Bob humans.csv<br>
03
Without ORM const human = {
age: 10,
name: "Alice"
}
const query = `INSERT INTO humans (age, name)
VALUES (`+human.age+`, "`+human.name+`")`
// Send query to db... Your code. Database We have written code that maps the data to an INSERT query <br>