|
Lightweight 0.20261030.0
|
Optional settings for SqlMigrationQueryBuilder::CreateIndex.
More...
#include <Migrate.hpp>
Public Attributes | |
| IndexType | type = IndexType::NonUnique |
| Whether the index enforces uniqueness. | |
| std::string | whereExpression {} |
Optional settings for SqlMigrationQueryBuilder::CreateIndex.
Designed for designated initialisers, so a call only spells out what it needs:
Definition at line 35 of file Migrate.hpp.
| IndexType Lightweight::SqlCreateIndexOptions::type = IndexType::NonUnique |
Whether the index enforces uniqueness.
Definition at line 38 of file Migrate.hpp.
| std::string Lightweight::SqlCreateIndexOptions::whereExpression {} |
Predicate body of a partial (PostgreSQL / SQLite) or filtered (SQL Server) index, without the leading WHERE. Empty creates a regular index over every row. The text is emitted verbatim; the caller is responsible for dialect-safe quoting and for staying within what every target DBMS accepts (SQL Server only takes simple comparisons, IS [NOT] NULL and IN lists joined by AND).
Definition at line 45 of file Migrate.hpp.