r"""Constructor for :class:`_schema.Table`. :param name: The name of this table as represented in the database. The table name, along with the value of the ``schema`` parameter, forms a key which uniquely identifies this :class:`_schema.Table` within
(
self,
name: str,
metadata: MetaData,
*args: SchemaItem,
schema: Optional[Union[str, Literal[SchemaConst.BLANK_SCHEMA]]] = None,
quote: Optional[bool] = None,
quote_schema: Optional[bool] = None,
autoload_with: Optional[Union[Engine, Connection]] = None,
autoload_replace: bool = True,
keep_existing: bool = False,
extend_existing: bool = False,
resolve_fks: bool = True,
include_columns: Optional[Collection[str]] = None,
implicit_returning: bool = True,
comment: Optional[str] = None,
info: Optional[Dict[Any, Any]] = None,
listeners: Optional[
_typing_Sequence[Tuple[str, Callable[..., Any]]]
] = None,
prefixes: Optional[_typing_Sequence[str]] = None,
# used internally in the metadata.reflect() process
_extend_on: Optional[Set[Table]] = None,
# used by __new__ to bypass __init__
_no_init: bool = True,
# dialect-specific keyword args
**kw: Any,
)
| 485 | metadata._remove_table(name, schema) |
| 486 | |
| 487 | def __init__( |
| 488 | self, |
| 489 | name: str, |
| 490 | metadata: MetaData, |
| 491 | *args: SchemaItem, |
| 492 | schema: Optional[Union[str, Literal[SchemaConst.BLANK_SCHEMA]]] = None, |
| 493 | quote: Optional[bool] = None, |
| 494 | quote_schema: Optional[bool] = None, |
| 495 | autoload_with: Optional[Union[Engine, Connection]] = None, |
| 496 | autoload_replace: bool = True, |
| 497 | keep_existing: bool = False, |
| 498 | extend_existing: bool = False, |
| 499 | resolve_fks: bool = True, |
| 500 | include_columns: Optional[Collection[str]] = None, |
| 501 | implicit_returning: bool = True, |
| 502 | comment: Optional[str] = None, |
| 503 | info: Optional[Dict[Any, Any]] = None, |
| 504 | listeners: Optional[ |
| 505 | _typing_Sequence[Tuple[str, Callable[..., Any]]] |
| 506 | ] = None, |
| 507 | prefixes: Optional[_typing_Sequence[str]] = None, |
| 508 | # used internally in the metadata.reflect() process |
| 509 | _extend_on: Optional[Set[Table]] = None, |
| 510 | # used by __new__ to bypass __init__ |
| 511 | _no_init: bool = True, |
| 512 | # dialect-specific keyword args |
| 513 | **kw: Any, |
| 514 | ) -> None: |
| 515 | r"""Constructor for :class:`_schema.Table`. |
| 516 | |
| 517 | |
| 518 | :param name: The name of this table as represented in the database. |
| 519 | |
| 520 | The table name, along with the value of the ``schema`` parameter, |
| 521 | forms a key which uniquely identifies this :class:`_schema.Table` |
| 522 | within |
| 523 | the owning :class:`_schema.MetaData` collection. |
| 524 | Additional calls to :class:`_schema.Table` with the same name, |
| 525 | metadata, |
| 526 | and schema name will return the same :class:`_schema.Table` object. |
| 527 | |
| 528 | Names which contain no upper case characters |
| 529 | will be treated as case insensitive names, and will not be quoted |
| 530 | unless they are a reserved word or contain special characters. |
| 531 | A name with any number of upper case characters is considered |
| 532 | to be case sensitive, and will be sent as quoted. |
| 533 | |
| 534 | To enable unconditional quoting for the table name, specify the flag |
| 535 | ``quote=True`` to the constructor, or use the :class:`.quoted_name` |
| 536 | construct to specify the name. |
| 537 | |
| 538 | :param metadata: a :class:`_schema.MetaData` |
| 539 | object which will contain this |
| 540 | table. The metadata is used as a point of association of this table |
| 541 | with other tables which are referenced via foreign key. It also |
| 542 | may be used to associate this table with a particular |
| 543 | :class:`.Connection` or :class:`.Engine`. |
| 544 |
no test coverage detected