MagicStack / MagicStack/asyncpg
README missing Database Port number in the example.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 8.1k
- Forks
- 468
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
- asyncpg version:
- PostgreSQL version:
- Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?: - Python version:
- Platform:
- Do you use pgbouncer?:
- Did you install asyncpg with pip?:
- If you built asyncpg locally, which version of Cython did you use?:
- Can the issue be reproduced under both asyncio and
uvloop?:
Not a bug or issue, I saw the example in the README section..
import asyncio
import asyncpg
async def run():
conn = await asyncpg.connect(user='user', password='password',
database='database', host='127.0.0.1')
values = await conn.fetch('''SELECT * FROM mytable''')
await conn.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
A database port number is missing in the example, I know Postgres default port is 5432, but in example if we give the details about the port it will be more clear to reader about the port parameter to use for different database instance.. Was it intentional to leave port number or its error ?
--Raghav
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
Öffne den README-Abschnitt, der das Beispiel für asyncpg.connect enthält, und prüfe, wie Verbindungsparameter dokumentiert sind. Aktualisiere das Beispiel, um die Verwendung des Datenbank-Ports klarzustellen, und überprüfe anschließend, dass der Code weiterhin ein gültiges PostgreSQL-Verbindungsbeispiel ist. Da es seit Jahren keine aktuelle Antwort gibt, bestätige vor Beginn, dass das Issue noch relevant ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- postgresql, python
- Bereich
- databases, documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100