类 MysqlTablesMapper

java.lang.Object
org.dromara.autotable.strategy.mysql.mapper.MysqlTablesMapper

public class MysqlTablesMapper extends Object
创建更新表结构的Mapper
作者:
don
  • 构造器详细资料

    • MysqlTablesMapper

      public MysqlTablesMapper()
  • 方法详细资料

    • findTableByTableName

      public InformationSchemaTable findTableByTableName(String tableName)
      根据表名查询表在库中是否存在
      参数:
      tableName - 表结构的map
      返回:
      InformationSchemaTable
    • findTableEnsembleByTableName

      public List<InformationSchemaColumn> findTableEnsembleByTableName(String tableName)
      根据表名查询库中该表的字段结构等信息
      参数:
      tableName - 表结构的map
      返回:
      表的字段结构等信息
    • queryTablePrimaryAndIndex

      public List<InformationSchemaStatistics> queryTablePrimaryAndIndex(String tableName)
      查询指定表的所有主键和索引信息
      参数:
      tableName - 表名
      返回:
      所有主键和索引信息