# Sequelize

## Objectives

* Identify an ORM
* Weigh pros and cons between ORMs and raw SQL queries
* Use the Sequelize CLI to create and migrate models
* Utilize Sequelize to create, find, and delete database records
* Explain the purpose of promises and their use in Sequelize

We learned the basics about relational databases (PostgreSQL) and used SQL to query from databases. Now, we're going to incorporate a relational databse into an Express application. But first, some terminology.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tmdarneille.gitbook.io/seirfx/unit-2/express-sequelize.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
