对原有列 增加 顺序 order

This commit is contained in:
Kevin
2024-07-05 19:05:46 +08:00
parent 6b60aef692
commit de8fd248fe
2 changed files with 25 additions and 3 deletions

View File

@@ -54,4 +54,14 @@ public class MetaUtilTest {
final Table table = MetaUtil.getTableMeta(ds, "user_1");
Assertions.assertEquals(table.getIndexInfoList().size(), 2);
}
/**
* 增加 列顺序字段
*/
@Test
public void getTableColumnTest() {
final Table table = MetaUtil.getTableMeta(ds, "user");
System.out.println(table.getColumns());
Assertions.assertEquals(SetUtil.of("id"), table.getPkNames());
}
}