API reference
GD.database.postgres
Entry for creating PostgreSQL clients and connection pools.
Methods
client
client() -> GDPostgresClientCreate a remote SQL client.
Parameters
No parameters.
Return value
GDPostgresClient
Errors
This call has no Err return slot. Its return type and documented sentinel values determine how to inspect the result.
pool
pool(size: int = 0) -> GDPostgresPoolCreate a remote SQL connection pool.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
size | int | 0 | Number of physical connections in the pool. |
Return value
GDPostgresPool
Errors
This call has no Err return slot. Its return type and documented sentinel values determine how to inspect the result.