MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_drop_index_exists

Method test_drop_index_exists

test/sql/test_compiler.py:6656–6663  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6654 )
6655
6656 def test_drop_index_exists(self):
6657 m = MetaData()
6658 t1 = Table("t1", m, Column("q", Integer))
6659 idx = Index("my_idx", t1.c.q)
6660 self.assert_compile(
6661 schema.DropIndex(idx, if_exists=True),
6662 "DROP INDEX IF EXISTS my_idx",
6663 )
6664
6665 def test_create_table_suffix(self):
6666 class MyDialect(default.DefaultDialect):

Callers

nothing calls this directly

Calls 5

MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
IndexClass · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected