core/homeassistant/components/recorder
Nathan Henrie 33450c726d Use sqlite's WAL mode to avoid `database is locked` errors (#6519)
* Use sqlite's WAL mode to avoid `database is locked` errors

- Relevant issue: https://github.com/home-assistant/home-assistant/issues/4780

Code:

- http://stackoverflow.com/a/23661501/1588795
- http://docs.sqlalchemy.org/en/rel_0_9/dialects/sqlite.html#foreign-key-support
- https://github.com/g2p/bedup/pull/86/files

* Only set WAL if using sqlite

* Reorder imports

* Fix pylint warnings
2017-03-15 00:14:12 -07:00
..
__init__.py Use sqlite's WAL mode to avoid `database is locked` errors (#6519) 2017-03-15 00:14:12 -07:00
const.py Feature/reorg recorder (#6237) 2017-02-26 14:38:06 -08:00
migration.py Feature/reorg recorder (#6237) 2017-02-26 14:38:06 -08:00
models.py [recorder] Index events time_fired to improve logbook performance (#5633) 2017-02-02 22:04:14 -05:00
purge.py Feature/reorg recorder (#6237) 2017-02-26 14:38:06 -08:00
util.py Feature/reorg recorder (#6237) 2017-02-26 14:38:06 -08:00