Skip to content
Myr

Fixed sqlite3 pattern. This fixes #924

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent a8a98bc · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/sqlite3.rst+1 added-1 removed
15 unmodified lines
1617 def get_db():18 db = getattr(g, '_database', None)19 if db is None:20 db = g._database = connect_to_database()20 db = g._database = sqlite3.connect(DATABASE)21 return db2223 @app.teardown_appcontext24 def close_connection(exception):
114 unmodified lines