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
shortcutme
0b599a95e8
Only import supported cols
2016-11-07 23:15:09 +01:00
shortcutme
5893bbc199
Fix map command overwrite
2016-11-07 23:14:36 +01:00
shortcutme
7baeb8e10f
Allow keyvalue table creation before json_id present
2016-11-07 23:14:09 +01:00
shortcutme
14f10d7d10
Open cursor if necessary
2016-11-07 23:13:05 +01:00
shortcutme
bdc8c7e5cc
Formatting
2016-11-07 23:12:48 +01:00
shortcutme
f55a1f1bf3
Support delayed commands in Db
2016-11-07 23:11:14 +01:00
shortcutme
75e74f1ff7
Always close db after 5 min idle time
2016-09-07 17:40:35 +02:00
shortcutme
f4de16fde6
Close db after 5 min idle time
2016-09-04 17:49:56 +02:00
shortcutme
0ab2630519
Change db journal to memory for faster connection time
2016-09-04 17:49:47 +02:00
ZeroNet
f21fdb23b6
Allow to store field in json table
2016-08-10 12:49:38 +02:00
ZeroNet
0ddc1e47ba
Delete file's database entries if file paramter is False
2016-08-10 12:49:22 +02:00