gdDocumentation0.8.0

API reference

GD.database.postgres

Entry for creating PostgreSQL clients and connection pools.

Methods

client

client() -> GDPostgresClient

Create 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) -> GDPostgresPool

Create a remote SQL connection pool.

Parameters

NameTypeDefaultDescription
sizeint0Number 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.