MagicStack / MagicStack/asyncpg
Connection methods does not accept classic nor unusual arguments supported in other pgsql connection solution
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 8.1k
- Forks
- 468
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello,
While trying to configure a Cockroach DB cluster async connection, there seems to be missing support for usual PostgreSQL parameters (or renamed) or supported options not frequently used.
I don't know why the connection part does not seems to follow other library but it would be nice to at least support all options existing in postgresql client (even renamed ^^).
For example, the part I am missing to connect is `options` keyword. It is used to provide complementary informations on the connection (in my case a cluster id to identify exact connection). Guess it is not mandatory by itself but it fells strange to have the issue only on asyncpg :/
* **asyncpg version**: Version: 0.26.0
* **PostgreSQL version**:
* **Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?**: Cockroach Cloud
* **Python version**: 3.10.7 (venv)
* **Platform**: Linux (Docker VSCode python dev container)
* **Do you use pgbouncer?**: No
* **Did you install asyncpg with pip?**: Yes (using setuptools)
* **If you built asyncpg locally, which version of Cython did you use?**:
* **Can the issue be reproduced under both asyncio and
[uvloop](https://github.com/magicstack/uvloop)?**:
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Der Bericht nennt asyncpg-Verbindungsmethoden und den options-Parameter des PostgreSQL-Clients, aber keine Repository-Datei und keinen Test. Beginne damit, den Einstiegspunkt für die Verbindung zu finden und seine akzeptierten Argumente mit den PostgreSQL-Optionen zu vergleichen. Lege den unterstützten Umfang vor der Implementierung fest; abgeschlossen bedeutet, dass die angeforderte Verbindungsoption akzeptiert und durch einen Regressionstest abgedeckt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- postgresql, python
- Bereich
- backend, databases
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100