Skip to content

Commit

Permalink
fix: delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Willam2004 committed Dec 30, 2023
1 parent be262cb commit 1d0008c
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 4,382 deletions.
641 changes: 0 additions & 641 deletions fastmodel-transform/fastmodel-transform-mysql/diff.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@ public void testCompareBeforeAfter() throws IOException {
System.out.println(compare.stream().map(BaseStatement::toString).collect(Collectors.joining("\n")));
}

@Test
public void testCompareBeforeAfterDdl() throws IOException {
DialectNode before = new DialectNode(getNode("/sql/compare/before.txt"));
DialectNode after = new DialectNode(getNode("/sql/compare/after.txt"));
List<BaseStatement> compare = mysqlNodeCompare.compare(before, after);
DialectNode transform = mysqlV8Transformer.transform(new CompositeStatement(compare));
String node = transform.getNode();
List<String> list = IOUtils.readLines(new StringReader(node));
List<String> collect = list.stream().filter(x -> {
return !x.startsWith("--");
}).collect(Collectors.toList());
FileUtils.writeLines(new File("diff.sql"), collect);
}

private String getNode(String s) throws IOException {
return IOUtils.resourceToString(s, StandardCharsets.UTF_8);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/******************************************/
/* DatabaseName = model-engine */
/* TableName = adjunct */
/******************************************/
CREATE TABLE `adjunct` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`gmt_create` datetime NOT NULL COMMENT '创建时间',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/******************************************/
/* DatabaseName = model-engine */
/* TableName = adjunct */
/******************************************/
CREATE TABLE `adjunct` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`gmt_create` datetime NOT NULL COMMENT '创建时间',
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1d0008c

Please sign in to comment.