MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / create

Method create

lib/sqlalchemy/sql/schema.py:1534–1551  ·  view source on GitHub ↗

Issue a ``CREATE`` statement for this :class:`_schema.Table`, using the given :class:`.Connection` or :class:`.Engine` for connectivity. .. seealso:: :meth:`_schema.MetaData.create_all`.

(
        self,
        bind: _CreateDropBind,
        checkfirst: Union[bool, CheckFirst] = CheckFirst.TYPES,
    )

Source from the content-addressed store, hash-verified

1532 self.metadata = metadata
1533
1534 def create(
1535 self,
1536 bind: _CreateDropBind,
1537 checkfirst: Union[bool, CheckFirst] = CheckFirst.TYPES,
1538 ) -> None:
1539 """Issue a ``CREATE`` statement for this
1540 :class:`_schema.Table`, using the given
1541 :class:`.Connection` or :class:`.Engine`
1542 for connectivity.
1543
1544 .. seealso::
1545
1546 :meth:`_schema.MetaData.create_all`.
1547
1548 """
1549
1550 # the default is to only check for schema objects
1551 bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst)
1552
1553 def drop(
1554 self,

Calls 1

_run_ddl_visitorMethod · 0.45

Tested by 15

multirow_fixtureMethod · 0.76
test_has_table_cacheMethod · 0.76
test_has_indexMethod · 0.76
_type_round_tripMethod · 0.76
test_server_defaultsMethod · 0.76