Skip to content
This repository
Browse code

updating documentation for 0.3-beta

  • Loading branch information...
commit 2e141695024fae213fabecd9b2330bd8d7a7070d 1 parent 9d905ae
Phil Bayfield authored

Showing 1 changed file with 23 additions and 23 deletions. Show diff stats Hide diff stats

  1. +23 23 README.markdown
46 README.markdown
Source Rendered
@@ -268,29 +268,29 @@ Usage examples
268 268
269 269 1. A simple query
270 270
271   - // Connect to database
272   - db, err := mysql.DialUnix(mysql.DEFAULT_SOCKET, "user", "password", "database")
273   - if err != nil {
274   - os.Exit(1)
275   - }
276   - // Perform query
277   - err = db.Query("select * from my_table")
278   - if err != nil {
279   - os.Exit(1)
280   - }
281   - // Get result set
282   - result, err := db.UseResult()
283   - if err != nil {
284   - os.Exit(1)
285   - }
286   - // Get each row from the result and perform some processing
287   - for {
288   - row := result.FetchRow()
289   - if row == nil {
290   - break
291   - }
292   - // ADD SOME ROW PROCESSING HERE
293   - }
  271 + // Connect to database
  272 + db, err := mysql.DialUnix(mysql.DEFAULT_SOCKET, "user", "password", "database")
  273 + if err != nil {
  274 + os.Exit(1)
  275 + }
  276 + // Perform query
  277 + err = db.Query("select * from my_table")
  278 + if err != nil {
  279 + os.Exit(1)
  280 + }
  281 + // Get result set
  282 + result, err := db.UseResult()
  283 + if err != nil {
  284 + os.Exit(1)
  285 + }
  286 + // Get each row from the result and perform some processing
  287 + for {
  288 + row := result.FetchRow()
  289 + if row == nil {
  290 + break
  291 + }
  292 + // ADD SOME ROW PROCESSING HERE
  293 + }
294 294
295 295
296 296

0 comments on commit 2e14169

Please sign in to comment.
Something went wrong with that request. Please try again.