Fix docs, how to get db connection in pattern

The docs are inaccurately suggestion a db connection would be available at `g.db`, after calling `get_db()` a connection will be available at `g._database` but even then I think instructing the user to use `get_db()` is the best way forward.
This commit is contained in:
Harry Moreno 2017-12-08 15:18:02 -05:00 committed by GitHub
parent d08d96acbc
commit 2d2c0169d4
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