Iterate over Postgres Gateway Tables

async AsyncCogniteClient.postgres_gateway.tables.__call__(
chunk_size: int | None = None,
limit: int | None = None,
) AsyncIterator[Table | TableList]

Iterate over custom tables

Fetches custom tables as they are iterated over, so you keep a limited number of custom tables in memory.

Parameters:
  • chunk_size (int | None) – Number of custom tables to return in each chunk. Defaults to yielding one custom table at a time.

  • limit (int | None) – Maximum number of custom tables to return. Defaults to return all.

Yields:

pg.Table | pg.TableList – yields Table one by one if chunk_size is not specified, else TableList objects.