Commit Graph

77 Commits

Author SHA1 Message Date
shortcutme 2e9cff928c
Skip commit if already commiting 2020-01-28 16:58:14 +01:00
shortcutme 835174270e
Less wait for closing cursors 2020-01-22 16:36:52 +01:00
shortcutme 98c98fbac7
Thread safe method to create directory for db 2019-12-17 15:02:18 +01:00
shortcutme 9b1f6337c3
Wait for cursor finish on db close 2019-12-17 15:02:04 +01:00
shortcutme 0839fdfc5e
Add reason for db close 2019-12-17 14:35:49 +01:00
shortcutme dca1dcdd2d
Use always active connection in DbCursor 2019-12-17 14:28:52 +01:00
shortcutme 5ce1782d05
Change journal and foreign keys mode on db connect 2019-12-04 17:14:50 +01:00
shortcutme 1a17645e93
Remove unnecessary import 2019-11-30 02:14:08 +01:00
shortcutme 5fba850d74
Don't close connection if it's already closed 2019-11-30 02:13:58 +01:00
shortcutme bd90e0ce52
Add Db id to logging identifier 2019-11-30 02:13:39 +01:00
shortcutme c24cfa721b
Lock db while connecting 2019-11-30 02:13:17 +01:00
shortcutme 1670d96908
Execute db commit in separate thread 2019-11-30 02:12:33 +01:00
shortcutme ec3c44c5b3
Use ThreadPool lock in Db 2019-11-30 02:11:34 +01:00
shortcutme 12bfad8fe6
Don't execute query while commiting 2019-11-30 02:11:11 +01:00
shortcutme fca9db7972
Try fix Recursive use of cursors ProgrammingError by creating new cursor for every execute and move Lock to db 2019-11-27 03:07:08 +01:00
shortcutme 8f27f50b34
Log SQL statements in progress as warning 2019-11-19 02:09:36 +01:00
shortcutme 96e7fbdca1
Don't try to commit if no db connection 2019-11-19 02:08:30 +01:00
shortcutme 0531d47721
Fix shutdown errors on macOS 2019-10-24 03:08:45 +02:00
Lola Dam 753396ac0c Try and catch block for dbRebuild (#2047)
* Try and catch block for dbRebuild

* Use self.log.error and not logging

* Use self.log.error and not logging in SiteStorage also

* Check if the rebuild is working
2019-06-23 14:21:50 +02:00
Lola Dam 9cda561091 Show error message when db failed to rebuild (#2043)
* Show error message when db failed to rebuild; fix #1908;

* Forgot file
2019-06-04 13:54:35 +02:00
shortcutme 8c52038671
Switch to WAL mode as it's faster on older sqlite 2019-03-20 00:49:51 +01:00
shortcutme 7aff97b6ff
Fix loading json files to db on Python 3.5 2019-03-20 00:49:27 +01:00
shortcutme c88152cac2
Use shared cursor where possible 2019-03-18 03:36:44 +01:00
shortcutme 61c72ac3ea
Fix SQLite concurrency errors 2019-03-18 03:36:12 +01:00
shortcutme 84c39f3baa
Less sensitive db progress handler 2019-03-18 03:33:51 +01:00
shortcutme 7d6ef195fd
Don't allow to run db on different thread 2019-03-18 03:33:28 +01:00
shortcutme 52ac972332
Keep need commit status if commit failed 2019-03-18 03:33:06 +01:00
shortcutme 9aa599f9d2
Close and commit all db at exit 2019-03-18 03:32:42 +01:00
shortcutme a1b5dad1c8
New Db connection type to avoid corruption 2019-03-16 02:40:32 +01:00
shortcutme 4fe4d0a7e7
BEGIN / END no longer necessary as there is no autocommit in new db module 2019-03-16 02:18:53 +01:00
shortcutme b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme 4195a72621
Only create default json table if it's not defined in dbschema 2018-11-21 03:31:12 +01:00
shortcutme 8cf30893f2
Don't close idle db connection during rebuild 2018-11-08 01:20:33 +01:00
shortcutme f05c7ffbfa
Fix parsing invalid files for db 2018-10-30 04:43:21 +01:00
Christian Seibold 413b6cc43c
Import Debug in Db/Db.py 2018-10-20 01:58:35 -05:00
shortcutme f275ba36a1
Skip table creation on error 2018-10-15 13:01:17 +02:00
shortcutme 1aa741a25b
Always change db cursor settings 2018-10-15 13:01:04 +02:00
shortcutme 17be72e55e
Process delayed queries every second 2018-03-29 02:50:23 +02:00
shortcutme fd451ae766
Make indexes and tables optional 2018-01-19 02:18:40 +01:00
shortcutme 089bb92f70
Record last query time on every command 2018-01-19 02:18:19 +01:00
shortcutme 5b6e1f699d
Add db id to logging 2018-01-19 02:17:23 +01:00
shortcutme b503d59c49
Support gzip compressed database files 2017-08-09 14:19:39 +02:00
shortcutme 74763465a8
Use SafeRe to match file patterns in dbschema.json 2017-07-14 10:34:57 +02:00
shortcutme 0725464388
Fix database loading 2017-06-15 13:33:51 +02:00
shortcutme 97b3563e6b
Rev2105, Fix database updating when path contains special characters 2017-06-15 13:30:06 +02:00
shortcutme f5fb6b83ff
Rev1905, Secure DB write db_mode option 2017-02-15 12:43:05 +01:00
shortcutme 6a71bb256e
Always load json_row on deleting 2017-02-13 16:13:09 +01:00
shortcutme 38d330da1a
Rename db.loadJson to db.updateJson 2017-02-09 01:53:31 +01:00
shortcutme 7938689f95
Skip SQLite thread check for macOS compatibility 2017-01-21 23:00:37 +01:00
shortcutme c38611dc15 Only display opened db number in log 2016-11-16 11:18:15 +01:00