title: What is the purpose of the row_factory method of an sqlite3 Connection object?
body: <p>Somehow the docs didn't make it too clear for me. I'm having trouble understanding the purpose of row_factory method of an sqlite3 Connection object.</p>
  
  <p>Basically, could you explain the following snippet?</p>
  
  <pre><code>def connect_db():
      """Connects to the specific database."""
      rv = sqlite3.connect(app.config['DATABASE'])
      rv.row_factory = sqlite3.Row
      return rv
  </code></pre>