-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* : complete create index syntax support #592
[summary] 1. create index syntax. CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... key_part: col_name [(length)] index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER NGRAM | COMMENT 'string' index_type: USING {BTREE | HASH} algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY} lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} 2. create table index definition syntax. index_definition: PRIMARY KEY (key_part,...) | UNIQUE [index_or_key] index_name (key_part,...) [index_option] | index_or_key index_name (key_part,...) [index_option] | FULLTEXT index_or_key index_name (key_part,...) [index_option] | SPATIAL index_or_key index_name (key_part,...) [index_option] index_or_key: INDEX | KEY [test case] src/planner/ddl_plan_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/planner/ddl_plan.go 93.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 86.4%
- Loading branch information
Showing
12 changed files
with
3,204 additions
and
2,473 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
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
Oops, something went wrong.