]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Add _dns module
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Aug 2021 04:03:18 +0000 (06:03 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 29 Aug 2021 17:33:20 +0000 (19:33 +0200)
commitdda44ecfc8ff710adab8e3fe1cf35c293cefee9b
treeb800b0723b6d80291f339c0a32051848043d7909
parent6c7798a73d57d50767a25aa32ec4e5dd83e5670c
Add _dns module

Add a function to allow async resolution of the `host` entry in the
connection string.

The module is experimental and depends on the `dnspython` external
package, which is currently not installed as a dependency.
psycopg/psycopg/_dns.py [new file with mode: 0644]
tests/test_dns.py [new file with mode: 0644]