Connecting to the Database
Before you can start working with entities you have to create the Database
object. The entities, that you declare in your Python code, will be mapped to the database through this object.
Mapping entities to the database can be divided into four steps:
Creating the
Database
objectDefining entities which are related to this
Database
objectBinding the
Database
object to a specific databaseMapping entities to the database tables
Now we’ll describe the main workflow of working with the Database
object and its methods. When you’ll need more details on this, you can find them in the API Reference.