1
0
Fork 0
pgcli/pgcli
Damien Baty 9f114c4549 feat: Replace pendulum by home-made duration-to-words function
`pgcli` uses Pendulum to display the query execution time in words:

    > select pg_sleep(62)
    +----------+
    | pg_sleep |
    |----------|
    |          |
    +----------+
    SELECT 1
    Time: 62.066s (1 minute 2 seconds), executed in: 62.063s (1 minute 2 seconds)

Pendulum 3 (which has been released in December 2023 and is now
written in Rust) does not build on 32-bit architectures [1]. As such,
installing `pgcli` on such architectures fails. We could pin Pendulum
to version 2 (which was written in Python and builds "everywhere"),
but requiring a whole library and its own dependencies for such a
small feature seems unwarranted.

This commit thus removes the requirement on Pendulum and replaces it
by a simple "duration-to-words" function.

Fixes #1451.

[1] Upstream issue: https://github.com/sdispater/pendulum/issues/784
2024-02-20 12:51:20 +01:00
..
packages confirm_destructive_query: Use confirm rather than prompt (#1410) 2023-10-18 09:25:29 -07:00
__init__.py Releasing version 4.0.1 2023-10-30 20:34:14 -07:00
__main__.py add main file to allow python3 -m pgcli execution 2019-12-19 00:18:14 +01:00
auth.py Fix sql-insert format emits NULL as 'None' (#1409) 2023-06-23 07:05:58 +02:00
completion_refresher.py Drop python 3.7, add 3.12 (#1426) 2023-10-11 12:34:59 +08:00
config.py Preserve comments when writing to config file. 2021-02-26 12:41:04 -08:00
explain_output_formatter.py fix explain output when running with auto-vertical-output or max_width (#1396) 2023-02-27 15:20:59 -08:00
key_bindings.py Esc + Enter should sumbit the query in safe multiline mode. 2022-09-14 14:59:33 -07:00
magic.py magic: use pgcli.connect_uri instead of connect (#1375) 2022-10-27 17:40:19 -07:00
main.py feat: Replace pendulum by home-made duration-to-words function 2024-02-20 12:51:20 +01:00
pgbuffer.py Black. 2022-09-14 14:59:33 -07:00
pgclirc pgclirc: Clarify description of `destructive_warning_restarts_connection` option (#1437) 2023-11-06 14:10:47 +08:00
pgcompleter.py Allow defining a json file with preferred aliases (#1382) 2023-10-06 16:13:28 -07:00
pgexecute.py Raised notices (#1450) 2024-02-05 21:41:28 -08:00
pgstyle.py Fix dead link 2022-09-14 15:46:51 -05:00
pgtoolbar.py For Python >= 3.11 directly use packaging to compare package versions (#1416) 2023-09-12 12:46:34 -07:00
pyev.py Update pyev.py (#1406) 2023-05-25 00:40:11 +02:00