From ed85ea5fec35569839532dc6a00f50bd8fe63775 Mon Sep 17 00:00:00 2001 From: Patrick O'brien Date: Sat, 27 Aug 2016 01:10:25 +1000 Subject: [PATCH] Fix readme, add feature to readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90261e3..f3cf24c 100644 --- a/README.md +++ b/README.md @@ -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 }