类 MysqlStrategy
java.lang.Object
org.dromara.autotable.core.strategy.mysql.MysqlStrategy
- 所有已实现的接口:
IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
public class MysqlStrategy
extends Object
implements IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
项目启动时自动扫描配置的目录中的model,根据配置的规则自动创建或更新表 该逻辑只适用于mysql,其他数据库尚且需要另外扩展,因为sql的语法不同
- 版本:
- 2019/07/06
- 作者:
- sunchenbin, Spet
-
字段概要
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明@NonNull MysqlTableMetadataanalyseClass(Class<?> beanClass) @NonNull MysqlCompareTableInfocompareTable(MysqlTableMetadata tableMetadata) createTable(MysqlTableMetadata tableMetadata) modifyTable(MysqlCompareTableInfo mysqlCompareTableInfo) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.dromara.autotable.core.strategy.IStrategy
checkTableNotExist, createMode, createTable, executeCreateTable, executeSql, listAllTables, start, start, updateMode, validateMode
-
构造器详细资料
-
MysqlStrategy
public MysqlStrategy()
-
-
方法详细资料
-
databaseDialect
-
typeMapping
-
dropTable
-
analyseClass
-
createTable
-
compareTable
-
modifyTable
-