Commit graph

126 commits

Author SHA1 Message Date
Benjamin Renard
48c1fb085e OracleDB.truncate: fix SQL query (TABLE word needed) 2021-11-18 12:34:30 +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
7b1019cb1b Add oracle lib
Based on mylib.pgsql.PgDB exiting lib and cx_Oracle, 
mylib.oracle.OracleDB provide an easy way to execute simple SQL query on 
an Oracle Database server.
2021-11-07 22:00:21 +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
94ed2e50fd config.BooleanOption: change default argument name to add enable/disable 2021-11-06 15:15:03 +01:00
Benjamin Renard
f8d78f6fe2 config.BaseOption: add no_arg parameter 2021-11-06 15:14:06 +01:00
Benjamin Renard
73c19816f7 LdapClient: add support to config lib 2021-11-03 17:41:15 +01:00
Benjamin Renard
dc0f17dd20 Add config lib 2021-11-03 17:38:31 +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
4ff38aa898 Add LdapClient.format_changes() method 2021-07-12 13:37:41 +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
51dd4f5724 mylib.script.helpers: move email stuff import to helper function to avoid global requirement 2021-06-23 12:59:48 +02:00
Benjamin Renard
b9ba720798 LdapClient: fix get_object_by_dn() and get_object_by_dn() methods when populate cache method return no objects 2021-06-03 12:26:19 +02:00
Benjamin Renard
6e85515420 Add missing __init__.py file for mylib.scripts 2021-06-02 19:16:11 +02:00
Benjamin Renard
a325803130 Add LdapClient 2021-06-02 18:59:09 +02:00
Benjamin Renard
1cd9432e25 email options: remove short options to avoid conflict 2021-05-26 15:13:15 +02:00
Benjamin Renard
5bdfc8479d Fix some pylint warnings 2021-05-26 14:44:30 +02:00
Benjamin Renard
b2d33e3ddf mylib.scripts.helpers: add possibility to specify config dict to handle default option values 2021-05-26 14:44:15 +02:00
Benjamin Renard
51a4d35823 Add some pretty formating helper functions 2021-05-26 11:56:45 +02:00
Benjamin Renard
45f088fa2b scripts.helpers: improve get_opts_parser() 2021-05-26 11:56:02 +02:00
Benjamin Renard
f44006535b ldap: format_date & parse_date: consider naive date as default 2021-05-26 11:55:16 +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