-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
179 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Mssql; | ||
|
||
/** | ||
* Defines the available index methods for {@see DDLQueryBuilder::createIndex()} method. | ||
*/ | ||
final class IndexMethod | ||
{ | ||
/** | ||
* Define the method of the index as `GEOMETRY_GRID`. | ||
*/ | ||
public const GEOMETRY_GRID = 'GEOMETRY_GRID'; | ||
/** | ||
* Define the method of the index as `GEOMETRY_AUTO_GRID`. | ||
*/ | ||
public const GEOMETRY_AUTO_GRID = 'GEOMETRY_AUTO_GRID'; | ||
/** | ||
* Define the method of the index as `GEOGRAPHY_GRID`. | ||
*/ | ||
public const GEOGRAPHY_GRID = 'GEOGRAPHY_GRID'; | ||
/** | ||
* Define the method of the index as `GEOGRAPHY_AUTO_GRID`. | ||
*/ | ||
public const GEOGRAPHY_AUTO_GRID = 'GEOGRAPHY_AUTO_GRID'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Mssql; | ||
|
||
/** | ||
* Defines the available index types for {@see DDLQueryBuilder::createIndex()} method. | ||
*/ | ||
final class IndexType | ||
{ | ||
/** | ||
* Define the type of the index as `CLUSTERED`. | ||
*/ | ||
public const CLUSTERED = 'CLUSTERED'; | ||
/** | ||
* Define the type of the index as `CLUSTERED COLUMNSTORE`. | ||
*/ | ||
public const CLUSTERED_COLUMNSTORE = 'CLUSTERED COLUMNSTORE'; | ||
/** | ||
* Define the type of the index as `COLUMNSTORE`. | ||
*/ | ||
public const COLUMNSTORE = 'COLUMNSTORE'; | ||
/** | ||
* Define the type of the index as `NONCLUSTERED`. | ||
*/ | ||
public const NONCLUSTERED = 'NONCLUSTERED'; | ||
/** | ||
* Define the type of the index as `PRIMARY XML`. | ||
*/ | ||
public const PRIMARY_XML = 'PRIMARY XML'; | ||
/** | ||
* Define the type of the index as `SPATIAL`. | ||
*/ | ||
public const SPATIAL = 'SPATIAL'; | ||
/** | ||
* Define the type of the index as `UNIQUE`. | ||
*/ | ||
public const UNIQUE = 'UNIQUE'; | ||
/** | ||
* Define the type of the index as `UNIQUE CLUSTERED`. | ||
*/ | ||
public const UNIQUE_CLUSTERED = 'UNIQUE CLUSTERED'; | ||
/** | ||
* Define the type of the index as `XML`. | ||
*/ | ||
public const XML = 'XML'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters