【问题标题】:Does SchemaCrawler have the ability to extend to support multiple versions of the same Data Source?SchemaCrawler 是否能够扩展以支持同一数据源的多个版本?
【发布时间】:2021-09-05 02:20:28
【问题描述】:

我是 SchemaCrawler 的新手,对 SchemaCrawler 印象深刻。在我的项目中,我需要检索同一数据源的不同版本的架构。

示例:如何同时连接 MS SQL server 2005 和 2019 版本?

【问题讨论】:

  • 你也是首先调用 SchemaCrawler 吗?代码还是 CLI?
  • 您知道对 2005 的支持已经在 5 年前结束了吗?
  • @JamesZ,这只是一个例子。
  • @Ostap,Java API
  • 好吧,你不应该使用不是你实际使用的示例,因为有人可能认为这是必需的。

标签: schema database-schema schemacrawler


【解决方案1】:

我建议要么使用不同的 -url 参数调用 SchemaCrawler 两次,要么在您的代码中处理此问题。

代码请看这里:https://github.com/schemacrawler/SchemaCrawler/blob/master/schemacrawler-examplecode/src/main/java/com/example/ApiExample.java#L68

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-01-21
  • 1970-01-01
  • 2016-05-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多