spelling correction: becuase ->because

This commit is contained in:
Byungcheon Ko
2016-03-27 01:54:51 -04:00
committed by James Miranda
parent 4e7d8658ef
commit 01ae84f950

View File

@@ -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 {