MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / create

Method create

lib/sqlalchemy/sql/schema.py:1277–1289  ·  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: bool = False)

Source from the content-addressed store, hash-verified

1275 self.metadata = metadata
1276
1277 def create(self, bind: _CreateDropBind, checkfirst: bool = False) -> None:
1278 """Issue a ``CREATE`` statement for this
1279 :class:`_schema.Table`, using the given
1280 :class:`.Connection` or :class:`.Engine`
1281 for connectivity.
1282
1283 .. seealso::
1284
1285 :meth:`_schema.MetaData.create_all`.
1286
1287 """
1288
1289 bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst)
1290
1291 def drop(self, bind: _CreateDropBind, checkfirst: bool = False) -> None:
1292 """Issue a ``DROP`` statement for this

Callers 15

multirow_fixtureMethod · 0.95
test_has_table_cacheMethod · 0.95
test_has_indexMethod · 0.95
_type_round_tripMethod · 0.95
test_server_defaultsMethod · 0.95
test_insert_w_floatsMethod · 0.95

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
test_insert_w_floatsMethod · 0.76