Denis Laxalde

Results 23 issues of Denis Laxalde

We declare types for anosql API through stub files (.pyi). The Queries type includes a __getattr__() method definition in order to allow attributes set in add_query() using setattr. The library...

Previously, the `__doc__` attribute of query function was built from all comments of the query block (delimited by `-- name:` line). If the SQL query contained a description as header...

Both asyncio's `add_reader/writer()` and trio's `wait_{readable,writable}()` accept a file descriptor argument along with any object with a `fileno()` method (not just a `socket.socket`). Can we make anyio support a similar...

There is a lot of SQL queries as python strings in the code base. [anosql](https://anosql.readthedocs.io/) is a nice tool to embed SQL in python code as queries can be written...

enhancement

See discussion at #291. From postgres 13, maybe we could rely on `leader_pid` column of `pg_stat_activity` view as first sort step on SQL side?

bug

I'm thinking of replacing blessed with [rich](https://github.com/willmcgugan/rich) as a terminal rendering library. Rich is now mature and provides high level features that would be nice for us as we could...

enhancement

As noticed in #239, and described in more details in #257, scrolling is broken when queries are wrapped. At the moment, I don't see any good solution to this issue:...

question

When pg_activity looses its connection to postgres and succeeds to reconnect later on, all UI settings (e.g. change of refresh time, selected view, etc.) are lost; we should preserve those.

bug

This adds support for anyio in psycopg "core" (i.e. not the psycopg_pool) through an `AnyIOConnection` class, associated waiting functions and a custom `AnyIOLibpqWriter` implementation. This uses conditional imports and pulls...