-
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.
Sync ddl parser code to latest Emulator DDL, add IF NOT EXISTS handli…
…ng (#61) * Work in progress - adding new features * Sync parser to latest Emulator DDL Add handling for If Not Exists on tables and indexes
- Loading branch information
Showing
35 changed files
with
1,045 additions
and
201 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
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/ASTalter_index_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_index_statement extends SimpleNode { | ||
public ASTalter_index_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTalter_index_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/ASTalter_model_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_model_statement extends SimpleNode { | ||
public ASTalter_model_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTalter_model_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/ASTalter_schema_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_schema_statement extends SimpleNode { | ||
public ASTalter_schema_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTalter_schema_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/ASTalter_sequence_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_sequence_statement extends SimpleNode { | ||
public ASTalter_sequence_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTalter_sequence_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
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
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
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
29 changes: 29 additions & 0 deletions
29
src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTcreate_model_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,29 @@ | ||
/* | ||
* 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; | ||
|
||
// TODO | ||
public class ASTcreate_model_statement extends SimpleNode { | ||
public ASTcreate_model_statement(int id) { | ||
super(id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
|
||
public ASTcreate_model_statement(DdlParser p, int id) { | ||
super(p, id); | ||
throw new UnsupportedOperationException("Not Implemented"); | ||
} | ||
} |
Oops, something went wrong.