Commit graph

19 commits

Author SHA1 Message Date
85caf81ac2 Introduce some new pre-commit hooks 2024-03-15 10:23:21 +01:00
Benjamin Renard
371d194728
PgDB: fix doSelect() method to retreive list of dicts instead of list of lists. 2023-12-15 12:12:48 +01:00
Benjamin Renard
62c3fadf96 Introduce pyupgrade,isort,black and configure pre-commit hooks to run all testing tools before commit
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-01-16 12:56:12 +01:00
da63f533be Abstract common DB methods in mysql.db.DB class and use it as base to implement PgDB, OracleDB and MyDB
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-07 02:19:18 +01:00
Benjamin Renard
ad04357c6b Code cleaning 2023-01-06 19:38:32 +01:00
Benjamin Renard
9a89638e54 Code cleaning 2022-01-20 19:14:16 +01:00
Benjamin Renard
31b994ad3c PgDB: add exit_on_error parameter to connect method 2021-11-23 13:08:24 +01:00
Benjamin Renard
9c35ead28e PgDB: add debug of SQL query in doSQL & doSelect methods 2021-11-19 11:53:30 +01:00
Benjamin Renard
b7a576eb52 PgDB: add INFO log message on server connection 2021-11-18 19:56:18 +01:00
Benjamin Renard
6c7f3e4871 PgDB: Add format_param method 2021-11-18 19:21:27 +01:00
Benjamin Renard
bfccaa0945 PgDB.select: add support for orderby clause specify by tuple 2021-11-18 12:25:17 +01:00
Benjamin Renard
c77f9e5674 PgSQL: fix quoting table name with schema prefix 2021-11-07 21:57:00 +01:00
Benjamin Renard
6b825813c1 PgSQL: code cleaning 2021-11-07 21:37:18 +01:00
Benjamin Renard
9d611284ef PgDB._add_where_clauses: Fix handling fields already in params 2021-11-03 17:04:58 +01:00
Benjamin Renard
afe54819bb Improve PgDB class and add unit tests 2021-10-06 21:33:25 +02:00
Benjamin Renard
21bd45ad25 PgDB: add possibility to provide query parameters on doSelect() 2021-07-12 12:18:38 +02:00
Benjamin Renard
6e778a8691 PgDB: fix connect() return and improve logging 2021-07-12 12:18:29 +02:00
Benjamin Renard
6bbacce38a Code cleaning 2021-05-19 19:19:57 +02:00
Benjamin Renard
bd4845f780 Switch to module style lib, make python3 compatibility and clean code 2021-05-19 18:07:42 +02:00