Source: https://gres.monicz.dev/api/

# API reference

Everything documented here is importable from `gres`; exception classes live in `gres.errors`. Names beginning with an underscore are private.

| Page | Use it for |
| --- | --- |
| [Connections and pools](https://gres.monicz.dev/api/connections/) | Open a `Connection` or `Pool`, read `PoolStats`, and supply credentials through provider callbacks. |
| [Queries and results](https://gres.monicz.dev/api/queries/) | The `Executor` methods shared by connections, pools, and transactions; `Transaction`, `PreparedStatement`, result objects, and notifications. |
| [SQL composition](https://gres.monicz.dev/api/composition/) | Build statements from `Query`, `Identifier`, `Literal`, and the composition helpers. |
| [Types and adapters](https://gres.monicz.dev/api/types/) | PostgreSQL value types, ranges, arrays, vectors, and the `Decoding`, `Codec`, and `Adapter` controls. |
| [PostGIS](https://gres.monicz.dev/api/spatial/) | `EwkbGeometry`, `EwkbGeography`, and `SpatialParameter`. |
| [Errors](https://gres.monicz.dev/api/errors/) | The `gres.errors` exception hierarchy. |
