THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class RedshiftDialect(RedshiftConnectorDialect): (source)
Retain the connector dialect without PostgreSQL-only capabilities.
Amazon Redshift does not implement DML RETURNING or PostgreSQL sequences. Server-generated IDENTITY values are not returned by the connector; callers needing a model key immediately must provide a client-generated primary key. This module is imported only when a Redshift engine is first constructed.
| Method | has |
Check catalog membership with bound schema and table names. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
| Class Variable | delete |
Delete returning flag used by RedshiftDialect. |
| Class Variable | insert |
Insert returning flag used by RedshiftDialect. |
| Class Variable | postfetch |
Postfetch lastrowid flag used by RedshiftDialect. |
| Class Variable | preexecute |
Preexecute autoincrement sequences flag used by RedshiftDialect. |
| Class Variable | supports |
Supports statement cache flag used by RedshiftDialect. |
| Class Variable | update |
Update returning flag used by RedshiftDialect. |
| Class Variable | use |
The official connector's executemany loops over individual network calls. Core can page supported multi-value INSERTs without RETURNING. |
Connection, table_name: str, schema: str | None = None, **_kw: object) -> bool:
(source)
¶
Check catalog membership with bound schema and table names.
The upstream reflection helper interpolates these identifiers into SQL string literals. CREATE TABLE's checkfirst path must keep them as values even when quoted identifiers contain apostrophes.
| Parameters | |
connection:sqlalchemy.engine.Connection | Core connection used by SQLAlchemy's reflection dispatch. |
tablestr | Exact table identifier to find. |
schema:str | None, optional | Explicit namespace, or the current schema when omitted. |
**_kw:object | Reflection options accepted by the SQLAlchemy interface. |
| Returns | |
bool | Whether the visible catalog contains this exact table. |