Package net.risesoft.util.form
Class DdlMysql
- java.lang.Object
-
- net.risesoft.util.form.DdlMysql
-
public class DdlMysql extends Object
- Author:
- qinman, zhangchongjie
- Date:
- 2022/12/21
-
-
Constructor Summary
Constructors Constructor Description DdlMysql()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTableColumn(DataSource dataSource, String tableName, List<net.risesoft.y9.sqlddl.pojo.DbColumn> dbcs)voidalterTableColumn(DataSource dataSource, String tableName, String jsonDbColumns)voidcreateTable(DataSource dataSource, String tableName, String jsonDbColumns)voiddropTable(DataSource dataSource, String tableName)voiddropTableColumn(DataSource dataSource, String tableName, String columnName)voidrenameTable(DataSource dataSource, String tableNameOld, String tableNameNew)
-
-
-
Method Detail
-
addTableColumn
public void addTableColumn(DataSource dataSource, String tableName, List<net.risesoft.y9.sqlddl.pojo.DbColumn> dbcs) throws Exception
- Throws:
Exception
-
alterTableColumn
public void alterTableColumn(DataSource dataSource, String tableName, String jsonDbColumns) throws Exception
- Throws:
Exception
-
createTable
public void createTable(DataSource dataSource, String tableName, String jsonDbColumns) throws Exception
- Throws:
Exception
-
dropTable
public void dropTable(DataSource dataSource, String tableName) throws Exception
- Throws:
Exception
-
dropTableColumn
public void dropTableColumn(DataSource dataSource, String tableName, String columnName) throws Exception
- Throws:
Exception
-
renameTable
public void renameTable(DataSource dataSource, String tableNameOld, String tableNameNew) throws Exception
- Throws:
Exception
-
-