gws.plugin.postgres.provider

Postgres database provider.

Source code: gws.plugin.postgres.provider

Module Contents

class gws.plugin.postgres.provider.Config

Bases: gws.base.database.provider.Config

Postgres/Postgis database provider

database: str | None

Database name.

host: str | None

Database host.

options: dict | None

Libpq connection options.

password: str | None

Password.

pool: dict | None

Options for connection pooling.

port: int = 5432

Database port.

serviceName: str | None

Service name from pg_services file.

username: str | None

Username.

gws.plugin.postgres.provider.connection_url(cfg: gws.Config)
class gws.plugin.postgres.provider.Object

Bases: gws.base.database.provider.Object

configure()
engine(**kwargs)
join_table_name(schema, name)
split_table_name(table_name)
table_bounds(table)