In the previous chapters, we gave an overview of model creation and how to load and export data from models. Now that we have our data model and some data to work with, it's time to learn more about how we can programmatically interact with them.
The Object-Relational Mapping(ORM) supporting our models provides a few methods for this interaction, called the Application Programming Interface (API). These start with the basic Create, Read, Update, Delete (CRUD) operations, but also include other operations, such as data export and import, or utility functions to aid the user interface and experience. It also provides some decorators that we already saw in the previous chapters. These allow us, when adding new methods, to let the ORM know how they should be handled.
In this chapter, we'll cover the following topics:
- Using the shell command to interactively explore the ORM API
- Understanding the execution environment and context
- Querying data using recordsets...