-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update parser to handle RENAME and SYNONYM (#101)
This only adds parsing capabilities, implementation of DIFFs is not yet supported.
- Loading branch information
Showing
17 changed files
with
404 additions
and
18 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
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTadd_synonym.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTadd_synonym extends SimpleNode { | ||
public ASTadd_synonym(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTadd_synonym(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
...in/java/com/google/cloud/solutions/spannerddl/parser/ASTalter_proto_bundle_statement.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTalter_proto_bundle_statement extends SimpleNode { | ||
public ASTalter_proto_bundle_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTalter_proto_bundle_statement(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
...n/java/com/google/cloud/solutions/spannerddl/parser/ASTcreate_proto_bundle_statement.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTcreate_proto_bundle_statement extends SimpleNode { | ||
public ASTcreate_proto_bundle_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTcreate_proto_bundle_statement(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTdrop_synonym.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTdrop_synonym extends SimpleNode { | ||
public ASTdrop_synonym(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTdrop_synonym(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTrename_op.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTrename_op extends SimpleNode { | ||
public ASTrename_op(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTrename_op(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTrename_statement.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTrename_statement extends SimpleNode { | ||
public ASTrename_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTrename_statement(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTrename_to.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTrename_to extends SimpleNode { | ||
public ASTrename_to(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTrename_to(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTsequence.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTsequence extends SimpleNode { | ||
public ASTsequence(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTsequence(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTsynonym.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTsynonym extends SimpleNode { | ||
public ASTsynonym(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTsynonym(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTsynonym_clause.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.solutions.spannerddl.parser; | ||
|
||
public class ASTsynonym_clause extends SimpleNode { | ||
public ASTsynonym_clause(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTsynonym_clause(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
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.