File tree Expand file tree Collapse file tree 6 files changed +3248
-2955
lines changed Expand file tree Collapse file tree 6 files changed +3248
-2955
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ this is an oracle sql parser. ref: https://docs.oracle.com/en/database/oracle/or
14
14
| Alter table| Drop constraint| :heavy_check_mark : | |
15
15
| Create table| Relational table| :heavy_check_mark : | :heavy_check_mark : |
16
16
| Create index| Relational table| :heavy_check_mark : | |
17
+ | Drop table| -| :heavy_check_mark : | :heavy_check_mark : |
18
+
17
19
## usage
18
20
``` go
19
21
package main
Original file line number Diff line number Diff line change @@ -108,10 +108,19 @@ type OutOfLineConstraint struct {
108
108
}
109
109
110
110
/*
111
- Create Table Statement
111
+ Create Index Statement
112
112
see: https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/CREATE-INDEX.html#GUID-1F89BBC0-825F-4215-AF71-7588E31D8BFE
113
113
*/
114
114
115
115
type CreateIndexStmt struct {
116
116
node
117
117
}
118
+
119
+ /*
120
+ Drop Table Statement
121
+ see: https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/CREATE-INDEX.html#GUID-1F89BBC0-825F-4215-AF71-7588E31D8BFE
122
+ */
123
+ type DropTableStmt struct {
124
+ node
125
+ TableName * TableName
126
+ }
Original file line number Diff line number Diff line change @@ -301,6 +301,7 @@ var keywordMap = map[string]int{
301
301
"usable" : _usable ,
302
302
"unusable" : _unusable ,
303
303
"invalidation" : _invalidation ,
304
+ "purge" : _purge ,
304
305
}
305
306
306
307
func init () {
You can’t perform that action at this time.
0 commit comments