Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ this is an oracle sql parser. ref: https://docs.oracle.com/en/database/oracle/or
|Create table|Relational table|:heavy_check_mark:|:heavy_check_mark:|
|Create index|Relational table|:heavy_check_mark:| |
|Drop table|-|:heavy_check_mark:|:heavy_check_mark:|
|Drop index|-|:heavy_check_mark:|:heavy_check_mark:|

## usage
```go
Expand Down
5 changes: 5 additions & 0 deletions ast/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ type TableName struct {
Table *element.Identifier
}

type IndexName struct {
Schema *element.Identifier
Index *element.Identifier
}

type Collation struct {
Name *element.Identifier
}
Expand Down
9 changes: 9 additions & 0 deletions ast/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,13 @@ type CreateIndexStmt struct {
type DropTableStmt struct {
node
TableName *TableName
}

/*
Drop Index Statement
see: https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/DROP-INDEX.html#GUID-F60F75DF-2866-4F93-BB7F-8FCE64BF67B6
*/
type DropIndexStmt struct {
node
IndexName *IndexName
}
Loading