Browse Source

Merge pull request #2548 from morenoh149/patch-1

Fix docs, how to get db connection in pattern
pull/2551/head
David Lord 7 years ago committed by GitHub
parent
commit
4556ab2e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/patterns/sqlite3.rst

2
docs/patterns/sqlite3.rst

@ -67,7 +67,7 @@ the application context by hand::
Easy Querying Easy Querying
------------- -------------
Now in each request handling function you can access `g.db` to get the Now in each request handling function you can access `get_db()` to get the
current open database connection. To simplify working with SQLite, a current open database connection. To simplify working with SQLite, a
row factory function is useful. It is executed for every result returned row factory function is useful. It is executed for every result returned
from the database to convert the result. For instance, in order to get from the database to convert the result. For instance, in order to get

Loading…
Cancel
Save