sqlalchemy.schema CreateIndex Example Code

CreateIndex is a class within the sqlalchemy.schema module of the SQLAlchemy project.

CheckConstraint, Column, CreateTable, DDLElement, ForeignKey, ForeignKeyConstraint, Index, PrimaryKeyConstraint, and Table are several other callables with code examples from the same sqlalchemy.schema package.

Example 1 from alembic

Alembic (project documentation and PyPI page) is a data migrations tool used with SQLAlchemy to make database schema changes. The Alembic project is open sourced under the MIT license.

alembic / alembic / ddl / mssql.py