类 DdlMysql
- java.lang.Object
-
- net.risesoft.util.form.DdlMysql
-
public class DdlMysql extends Object
- 作者:
- qinman, zhangchongjie
- Date:
- 2022/12/21
-
-
构造器概要
构造器 构造器 说明 DdlMysql()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
-
-
-
方法详细资料
-
addTableColumn
public void addTableColumn(DataSource dataSource, String tableName, List<net.risesoft.y9.sqlddl.pojo.DbColumn> dbcs) throws Exception
- 抛出:
Exception
-
alterTableColumn
public void alterTableColumn(DataSource dataSource, String tableName, String jsonDbColumns) throws Exception
- 抛出:
Exception
-
createTable
public void createTable(DataSource dataSource, String tableName, String jsonDbColumns) throws Exception
- 抛出:
Exception
-
dropTable
public void dropTable(DataSource dataSource, String tableName) throws Exception
- 抛出:
Exception
-
dropTableColumn
public void dropTableColumn(DataSource dataSource, String tableName, String columnName) throws Exception
- 抛出:
Exception
-
renameTable
public void renameTable(DataSource dataSource, String tableNameOld, String tableNameNew) throws Exception
- 抛出:
Exception
-
-