MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / create_all

Method create_all

lib/sqlalchemy/sql/schema.py:6296–6322  ·  lib/sqlalchemy/sql/schema.py::MetaData.create_all

Create all tables stored in this metadata. Conditional by default, will not attempt to recreate tables already present in the target database. :param bind: A :class:`.Connection` or :class:`.Engine` used to access the database. :param tables:

(
        self,
        bind: _CreateDropBind,
        tables: Optional[_typing_Sequence[Table]] = None,
        checkfirst: Union[bool, CheckFirst] = CheckFirst.ALL,
    )

Source from the content-addressed store, hash-verified

6294 util.warn(fclass="st">"Skipping table {name}: {uerr}")
6295
6296 def create_all(
6297 self,
6298 bind: _CreateDropBind,
6299 tables: Optional[_typing_Sequence[Table]] = None,
6300 checkfirst: Union[bool, CheckFirst] = CheckFirst.ALL,
6301 ) -> None:
6302 class="st">"""Create all tables stored in this metadata.
6303
6304 Conditional by default, will not attempt to recreate tables already
6305 present in the target database.
6306
6307 :param bind:
6308 A :class:`.Connection` or :class:`.Engine` used to access the
6309 database.
6310
6311 :param tables:
6312 Optional list of ``Table`` objects, which is a subset of the total
6313 tables in the ``MetaData`` (others are ignored).
6314
6315 :param checkfirst: A boolean value or instance of :class:`.CheckFirst`.
6316 Indicates which objects should be checked for within a separate pass
6317 before creating schema objects.
6318
6319 class="st">"""
6320 bind._run_ddl_visitor(
6321 ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables
6322 )
6323
6324 def drop_all(
6325 self,

Calls 1

_run_ddl_visitorMethod · 0.45