bd2d221c48
Prevent flush from creating cursor without con
...
MysqlRed.flush() tried to create a cursor in any case. If there was no
connection (because the subclasses haven't been instantiated an oursql
Error occured.
Instead, check before if there is a connection and otherwise raise an Error
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=75 FS#75]
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=75 FS#75]
2016-08-24 16:46:51 +02:00
bd9dbdfa17
Make use of declared db_host_port
...
The port to connect to MySQL-Server was previously always assumed as
the default one. So the library was incompatible to db's on nonstandard
ports
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=68 FS#68]
2016-08-23 21:12:07 +02:00
f53a5b3745
Output a warning if there are update/insert querys cached when exit programm
2016-03-02 17:10:08 +01:00
24adafeee7
Changes for new jogobot-module
2016-02-29 11:35:48 +01:00
ef9c13324a
Improve documentation of MysqlRed.flush()
2015-09-20 18:17:59 +02:00
e186f2f22b
Use dictionary with page_id / fam_hash as key for cached_insert_data to prevent double entrys
2015-09-20 17:45:07 +02:00
dbcfe8f106
Add a generator to MysqlRedFam to retrieve redfams from db by status
2015-09-19 19:50:38 +02:00
8059bb9992
Change behavior of MysqlRedFam to be able to get instance without knowen fam_hash
2015-09-19 19:49:20 +02:00
4518efc504
Fix bug (Cached querys not executed) caused by class attribute protection level --> changed from private to protected
...
Reformat MySQL querys to remove whitespace generated by indetation
2015-09-18 18:08:13 +02:00
53f53ddb8b
Implement cached querys in MysqlRedFam
2015-09-17 19:56:39 +02:00
26f5912f88
Collect writing db querys for running once in MysqlRedPage
...
Add classmethod to MysqlRed for executing collected querys
2015-09-16 21:02:02 +02:00
1dea5d7e84
NOT WORKING Cache SQL querys to reduce amount of querys
2015-09-16 18:31:54 +02:00
db5bb7401e
Update RedFam class to rebuild the whole structure of RedFamPaser generated object
...
Move fam_hash() method from RedFamParser to RedFam
Define custom Error classes
2015-09-15 21:19:07 +02:00
be0041804a
Clean up
2015-09-13 13:19:22 +02:00
af6d483280
Use a additional module to store custom config ...
2015-09-13 13:14:37 +02:00
74b2dc727c
Clean up PEP8 styleguide compatibility with flake8
2015-09-13 11:53:47 +02:00
cafe08dd7f
Added license GPLv3 + Reworked code
...
Better compatibility with https://www.mediawiki.org/wiki/Manual:Pywikibot/Development_guidelines
2015-09-13 01:22:27 +02:00