Commit Graph

32 Commits

Author SHA1 Message Date
f7f50a28a7 [parser] DDL : add create sequence support & compatible with mariaDB except OrReplace. (#658)
* add create sequence support

* fix conflict

* be compatible with mariaDB

* add SignedNum and reformat indent

* add sequence test

* .

* address comment

* not support orreplace by now

* add sequence ddl

* add ddl restore test

* add : no cycle/no cache/no order

* .

* fix ident
2021-10-09 14:53:23 +08:00
07f157ca8c [parser] model: add a function GetTypeDesc for ColumnInfo (#659) 2021-10-09 14:53:23 +08:00
194335f65f [parser] model: add hidden to ColumnInfo (#621)
* add hidden

* make codecov happy

* support extended

* clean code

* address comment

* tweak

* address comment
2021-10-09 14:53:23 +08:00
a98bbab0f8 [parser] *: spport primary key (#617) 2021-10-09 14:53:23 +08:00
24a0caa4af [parser] *: suport alter table set flash replica syntax (#564) 2021-10-09 14:53:23 +08:00
ef25c58596 [parser] parser : support admin repair table syntax (#547)
* support admin repair table

* fix comment

* add ddl test

* fix depency
2021-10-09 14:53:23 +08:00
9d0dae0e58 [parser] parser: add nowait keyword, add for update no wait grammar, and related error… (#582) 2021-10-09 14:53:23 +08:00
7c3199735d [parser] add support for RTREE index (#433) 2021-10-09 14:53:23 +08:00
d6e9870e73 [parser] model: add schema name, table name to ddl job (#422)
* model: add schema name, table name to ddl job

* remove table name
2021-10-09 14:53:23 +08:00
e292ab6ed5 [parser] model: add LoadData statement flag (#372)
* model: add LoadData statement flag

* Update model/flags.go

Co-Authored-By: Lonng <heng@lonng.org>
2021-10-09 14:53:23 +08:00
1bf1d8c877 [parser] model: add in union flag (#351)
Signed-off-by: Lonng <heng@lonng.org>
2021-10-09 14:53:23 +08:00
92ba8bb89b [parser] *: support parsing all PARTITION BY syntax (#345) 2021-10-09 14:53:23 +08:00
4dbad06ee8 [parser] *: try to support lock/unlock tables function (#305) 2021-10-09 14:53:23 +08:00
78d1b7f21b [parser] parser: add support for ALTER DATABASE syntax (#318) 2021-10-09 14:53:23 +08:00
1fa4d04572 [parser] *: fix upper-cased charset and collation name (#301) 2021-10-09 14:53:23 +08:00
64b24c11d0 [parser] charset: add GetSupportedCollations to get only supported collations (#295) 2021-10-09 14:53:23 +08:00
5ac172fb58 [parser] *: add table option: pre_split_regions (#287)
* *: add table option: pre_split_resions

* refine code

* add PreSplitRegions in tableInfo

* Update misc.go

Co-Authored-By: crazycs520 <crazycs520@gmail.com>

* Update parser.y

Co-Authored-By: crazycs520 <crazycs520@gmail.com>

* address comment

* refine comment
2021-10-09 14:53:23 +08:00
6bfe81dce2 [parser] change admin restore table syntax to recover table syntax. (#180) 2021-10-09 14:53:23 +08:00
18ba909e44 [parser] model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far (#252)
* model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far

* address comment
2021-10-09 14:53:23 +08:00
cc8fcaa47a [parser] model: add FindIndexByName function (#267) 2021-10-09 14:53:23 +08:00
036d077593 [parser] model: increase table and column version (#254) 2021-10-09 14:53:23 +08:00
fb046c5501 [parser] model: add version field to tableInfo. (#223) 2021-10-09 14:53:23 +08:00
c804203630 [parser] model: add version number to Column (#183) 2021-10-09 14:53:23 +08:00
3283ef24ea [parser] ddl: add admin restore syntax support (#85)
eg: admin restore table by job 11
2021-10-09 14:53:23 +08:00
3be13d0e75 [parser] add drop view ddl action (#131) 2021-10-09 14:53:23 +08:00
cc7fbfb56a [parser] model: add IsAutoIncColUnsigned for TableInfo (#79) 2021-10-09 14:53:23 +08:00
03f56baa05 [parser] parser,ast: parse ALTER TABLE .. TRUNCATE PARTITION (#74) 2021-10-09 14:53:23 +08:00
3048ced6b7 [parser] *: add ActionModifyTableCharsetAndCollate to support alter table charset and collate (#14) 2021-10-09 14:53:23 +08:00
fd3b6465ca [parser] ast, parser: extract create view parameters to CreateViewStmt (#55) 2021-10-09 14:53:23 +08:00
87917e47b4 [parser] parser,ast: fix create table partition by hash syntax (#33) 2021-10-09 14:53:23 +08:00
8c54ae8e22 [parser] model: add isUnsigned for allocator (#34) 2021-10-09 14:53:23 +08:00
c270f55405 [parser] *: move github.com/pingcap/tidb/parser here (#1) 2021-10-09 14:53:23 +08:00