Package net.risesoft.y9.sqlddl
Class DdlMysql
- java.lang.Object
-
- net.risesoft.y9.sqlddl.DdlMysql
-
public class DdlMysql extends Object
- Author:
- dingzhaojun, qinman, mengjuhua, shidaobang
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddTableColumn(DataSource dataSource, String tableName, String jsonDbColumns)static voidalterTableColumn(DataSource dataSource, String tableName, String jsonDbColumns)static voiddropTable(DataSource dataSource, String tableName)static voiddropTableColumn(DataSource dataSource, String tableName, String columnName)static voidrenameTable(DataSource dataSource, String tableNameOld, String tableNameNew)
-
-
-
Method Detail
-
addTableColumn
public static void addTableColumn(DataSource dataSource, String tableName, String jsonDbColumns) throws Exception
- Throws:
Exception
-
alterTableColumn
public static void alterTableColumn(DataSource dataSource, String tableName, String jsonDbColumns) throws Exception
- Throws:
Exception
-
dropTable
public static void dropTable(DataSource dataSource, String tableName) throws Exception
- Throws:
Exception
-
dropTableColumn
public static void dropTableColumn(DataSource dataSource, String tableName, String columnName) throws Exception
- Throws:
Exception
-
renameTable
public static void renameTable(DataSource dataSource, String tableNameOld, String tableNameNew) throws Exception
- Throws:
Exception
-
-