search for: db_log

Displaying 2 results from an estimated 2 matches for "db_log".

Did you mean: tdb_log
2015 May 10
2
[LLVMdev] http://llvm.org/perf/ instability: some clues
...ad a session is shared between many or all requests: >From ui/app.py, it shows Request.get_db() basically caches get_database from "config": ... class Request(flask.Request): ... def get_db(self): ... if self.db is None: echo = bool(self.args.get('db_log') or self.form.get('db_log')) self.db = current_app.old_config.get_database(g.db_name, echo=echo) ... return self.db in config.py, it is shown that get_database returns a V4DB object by calling a constructor: ... def get_database(self, name, echo=False):...
2012 May 15
5
setting up the SQLite database
I know this isn''t Python, but I''d like to get a view on the ''one obvious'' way to set up an SQLite (or other) database and its location per-app. I''ve got a bit lost with the Camping 2 changes and various code snippets I have kicking around. 1. is it best to set up the DB creation/connection: 1.1 at the end of the app