类 H2TablesMapper

java.lang.Object
org.dromara.autotable.core.strategy.h2.mapper.H2TablesMapper

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

    • H2TablesMapper

      public H2TablesMapper()
  • 方法详细资料

    • findTableInformation

      public InformationSchemaTables findTableInformation(String tableSchema, String tableName)
      根据表名查询表在库中是否存在
      参数:
      tableSchema - schema名
      tableName - 表名
      返回:
      InformationSchemaTables
    • findColumnInformation

      public List<InformationSchemaColumns> findColumnInformation(String tableSchema, String tableName)
      根据表名查询库中该表的字段结构等信息
      参数:
      tableSchema - schema名
      tableName - 表名
      返回:
      表的字段结构等信息
    • findIndexInformation

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