radondb / radon

RadonDB is an open source, cloud-native MySQL database for building global, scalable cloud services
https://radondb.io/
GNU General Public License v3.0
1.8k stars 217 forks source link

sqlparser: complete truncate/drop table syntax #690 #696

Closed hustjieke closed 4 years ago

hustjieke commented 4 years ago

[summary] complete truncate/drop table syntax #690 For truncate: TRUNCATE [TABLE] tbl_name, add "[TABLE]" option For drop table: add "RESTRICT" ,"CASCADE" and "TEMPORARY" options

[test case] src/proxy/ddl_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go

[patch codecov] src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 96.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast_funcs.go 95.5% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/sql.go 69.6% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/token.go 99.6%

codecov[bot] commented 4 years ago

Codecov Report

Merging #696 into master will decrease coverage by 0%. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #696   +/-   ##
=====================================
- Coverage      89%    89%   -1%     
=====================================
  Files         130    130           
  Lines        9279   9279           
=====================================
- Hits         8269   8267    -2     
  Misses        669    669           
- Partials      341    343    +2     
Impacted Files Coverage Δ
src/executor/engine/merge_join.go 95% <0%> (-2%) :arrow_down:
src/backend/txn.go 87% <0%> (-1%) :arrow_down:
src/backend/connection.go 89% <0%> (+1%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d0a0973...53c84fb. Read the comment docs.