Merge pull request #2548 from morenoh149/patch-1

Fix docs, how to get db connection in pattern
This commit is contained in:
David Lord 2017-12-08 12:59:46 -08:00 committed by GitHub
commit 4556ab2e06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ the application context by hand::
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
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