Fix readme, add feature to readme

This commit is contained in:
Patrick O'brien 2016-08-27 01:10:25 +10:00
parent 26bb719563
commit ed85ea5fec

View file

@ -18,6 +18,7 @@ lifecycle.
- Full model generation
- High performance through generation
- Uses boil.Executor (simple interface, sql.DB, sqlx.DB etc. compatible)
- Easy workflow (models can always be regenerated, full auto-complete)
- Strongly typed querying (usually no converting or binding to pointers)
- Hooks (Before/After Create/Update)
@ -91,7 +92,7 @@ if err != nil {
movies, err := user.FavoriteMovies(db).All()
// Eager loading
users, err := models.Users(db, Load("FavoriteMovies"))
users, err := models.Users(db, Load("FavoriteMovies")).All()
if err != nil {
return err
}