Skip to main content

PostgresDsn

A type that will accept any Postgres DSN.

Methods


host()

@classmethod
def host() - > str

The required URL host.

Returns

TypeDescription
strThe hostname or IP address of the Postgres server extracted from the DSN.