title: How to trace sql query in postgresql
body: <pre><code>sql.Register("sqlWithHooks", sqlhooks.Wrap(r.Driver(), &amp;Hooks{}))
  
  // Connect to the registered wrapped driver
  db, err := sql.Open("sqlWithHooks", ":memory:")
  if err != nil {
      fmt.Println("error",err)
  
  }
  
  rows, err := db.Query("SELECT id,name,cid,dimension,price FROM   table_name ")
  
  if err != nil {
      fmt.Println("inside the error .........................",err)
  
  }
  </code></pre>
  
  <p>After running this code I am getting an error missing "=" after ":memory:" in connection info string. Can anyone tell me what's wrong with what I've done here?</p>