April 2019
Beginner to intermediate
244 pages
6h 34m
English
To test our app, we need to fetch dependencies and compile the application:
| | > mix do deps.get, compile |
| | Running dependency resolution... |
| | ... |
If your database already exists, you can start working with Ecto right away. Test it out by running a simple query, like getting the row count of one of your tables:
| | MyApp.Repo.aggregate("some_table", :count, :some_column) |
If don’t have a database yet, you can create it using the ecto.create mix task:
| | > mix ecto.create |
| | The database for MyApp.Repo has been created |
If that succeeds, then your configuration is working and Ecto is able to communicate with your database.
Read now
Unlock full access