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

Method create

lib/sqlalchemy/sql/schema.py:5714–5728  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

5712 self.expressions = self._table_bound_expressions = exprs
5713
5714 def create(
5715 self,
5716 bind: _CreateDropBind,
5717 checkfirst: Union[bool, CheckFirst] = CheckFirst.NONE,
5718 ) -> None:
5719 """Issue a ``CREATE`` statement for this
5720 :class:`.Index`, using the given
5721 :class:`.Connection` or :class:`.Engine`` for connectivity.
5722
5723 .. seealso::
5724
5725 :meth:`_schema.MetaData.create_all`.
5726
5727 """
5728 bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst)
5729
5730 def drop(
5731 self,

Callers 4

test_has_indexMethod · 0.95
test_vector_indexMethod · 0.95
test_vector_ivf_indexMethod · 0.95

Calls 1

_run_ddl_visitorMethod · 0.45

Tested by 4

test_has_indexMethod · 0.76
test_vector_indexMethod · 0.76
test_vector_ivf_indexMethod · 0.76