【问题标题】:SchemaCrawler Row Count with Velocity template?带有 Velocity 模板的 SchemaCrawler 行数?
【发布时间】:2020-03-24 11:38:06
【问题描述】:

是否可以使用velocity模板获取表格行数?

如果有人以前做过,可以分享一下方法吗?

提前致谢。

【问题讨论】:

    标签: schemacrawler


    【解决方案1】:

    请使用 SchemaCrawler 16.6.1(或更高版本),它引入了一个新的命令行开关 --load-row-counts。 (请先使用 SchemaCrawler 下载工具下载 Velocity 和 Thymeleaf。)然后,您可以使用类似这样的 Velocity 模板:

    #foreach($table in $catalog.tables)
    #if ($table.tableType == "table")
    $table.fullName - $table.getAttribute("schemacrawler.table.row_count")
    #end
    #end
    

    Sualeh Fatehi,SchemaCrawler

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-28
      • 1970-01-01
      • 2013-06-06
      • 2018-02-27
      • 2014-07-16
      • 2017-01-24
      • 2018-05-29
      • 2019-07-29
      相关资源
      最近更新 更多