From 01ae84f950754c0f2b66eca9f4a696d058792dd7 Mon Sep 17 00:00:00 2001 From: Byungcheon Ko Date: Sun, 27 Mar 2016 01:54:51 -0400 Subject: [PATCH] spelling correction: becuase ->because --- en/05.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/05.3.md b/en/05.3.md index 35adaabc..b89fcc70 100644 --- a/en/05.3.md +++ b/en/05.3.md @@ -120,7 +120,7 @@ Also you have to do a `rows.Next()`, without using that you can't fetch data in Transactions =============== -The above example states how you fetch data from the database, but when you want to write a webapplication then it'll not only fetch data from the db but it'll also write data into it, for that, you use transactions becuase the database might get locked if you do not use transactions since there can be multiple go routines which access the database, and you do not want this happening to your web application. Also if you do not use transactions then a lot of things can go wrong with the web app. +The above example states how you fetch data from the database, but when you want to write a web application then it'll not only fetch data from the db but it'll also write data into it, for that, you use transactions because the database might get locked if you do not use transactions since there can be multiple go routines which access the database, and you do not want this happening to your web application. Also if you do not use transactions then a lot of things can go wrong with the web app. trashSQL, err := database.Prepare("update task set is_deleted='Y',last_modified_at=datetime() where id=?") if err != nil {