add insert sql

This commit is contained in:
XudongXie 2024-08-31 23:11:10 +08:00
parent 62dfa6da61
commit 9b7a3bb85f
6 changed files with 61 additions and 15 deletions

View File

@ -4,9 +4,13 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="coding">
<list default="true" id="d8d12963-4777-48e3-9669-309cf5e41d60" name="更改" comment="finish the framework of sqltranslate (createTab sql is now being supported!)">
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/Insert/InsertDataNode.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/Insert/InsertEndNode.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/Insert/InsertNode.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/Insert/InsertObjNode.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/Generator/OpenGaussGenerator.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Generator/OpenGaussGenerator.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/Parser/AST/CreateTable/CreateTabNode.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Parser/AST/CreateTable/CreateTabNode.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -39,17 +43,17 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"last_opened_file_path": "F:/oracle2opengauss/examples/sqlTranslate",
"project.structure.last.edited": "模块",
"project.structure.proportion": "0.0",
"project.structure.side.proportion": "0.0",
"settings.editor.selected.configurable": "preferences.fileTypes"
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;last_opened_file_path&quot;: &quot;F:/oracle2opengauss/examples/sqlTranslate&quot;,
&quot;project.structure.last.edited&quot;: &quot;模块&quot;,
&quot;project.structure.proportion&quot;: &quot;0.0&quot;,
&quot;project.structure.side.proportion&quot;: &quot;0.0&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;preferences.fileTypes&quot;
}
}]]></component>
}</component>
<component name="RunManager" selected="应用程序.Main">
<configuration name="App" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="org.example.App" />
@ -237,7 +241,14 @@
<option name="project" value="LOCAL" />
<updated>1724510094392</updated>
</task>
<option name="localTasksCounter" value="20" />
<task id="LOCAL-00020" summary="finish the framework of sqltranslate (createTab sql is now being supported!)">
<created>1724511620952</created>
<option name="number" value="00020" />
<option name="presentableId" value="LOCAL-00020" />
<option name="project" value="LOCAL" />
<updated>1724511620952</updated>
</task>
<option name="localTasksCounter" value="21" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -261,7 +272,8 @@
<MESSAGE value="add parser function" />
<MESSAGE value="add function" />
<MESSAGE value="coding" />
<option name="LAST_COMMIT_MESSAGE" value="coding" />
<MESSAGE value="finish the framework of sqltranslate (createTab sql is now being supported!)" />
<option name="LAST_COMMIT_MESSAGE" value="finish the framework of sqltranslate (createTab sql is now being supported!)" />
</component>
<component name="XDebuggerManager">
<watches-manager>

View File

@ -8,7 +8,6 @@ public class CreateTabNode extends ASTNode {
public CreateTabNode(ASTNode node) {
super(node);
}
public CreateTabNode(List<Token> tokens) {
super(tokens);
}

View File

@ -0,0 +1,4 @@
package Parser.AST.Insert;
public class InsertDataNode {
}

View File

@ -0,0 +1,4 @@
package Parser.AST.Insert;
public class InsertEndNode {
}

View File

@ -0,0 +1,23 @@
package Parser.AST.Insert;
import Lexer.Token;
import Parser.AST.ASTNode;
import java.util.List;
public class InsertNode extends ASTNode {
public InsertNode(List<Token> tokens)
{
super(tokens);
}
public InsertNode(ASTNode node)
{
super(node);
}
public void visit(ASTNode node, StringBuilder queryString)
{
queryString.append("INSERT INTO ");
}
}

View File

@ -0,0 +1,4 @@
package Parser.AST.Insert;
public class InsertObjNode {
}