【问题标题】:SchemaCrawler user name and rolesSchemaCrawler 用户名和角色
【发布时间】:2020-05-08 19:42:33
【问题描述】:

我在我的项目中使用架构爬虫。有什么方法可以获取用户及其角色? 目录对象不包含任何此类信息。

我正在使用这个配置:

val schemaCrawlerOptions = SchemaCrawlerOptionsBuilder
  .builder
  .withSchemaInfoLevel(SchemaInfoLevelBuilder.maximum())
  .toOptions

【问题讨论】:

    标签: schemacrawler


    【解决方案1】:

    SchemaCrawler 不提供将用户和角色作为数据库元数据目录的一部分来获取的方法。但是,您可以执行任意 SQL 查询,并在 SchemaCrawler 输出中显示结果。根据您的数据库,您可能能够通过 SQL 查询获取用户和角色信息,因此您可以将其作为 SchemaCrawler 输出的一部分。请参阅 SchemaCrawler 示例(包含在下载中),了解如何使用 SchemaCrawler 运行 SQL 查询。

    Sualeh Fatehi,SchemaCrawler

    【讨论】:

    • SchemaCrawler 从主要 RDMS 系统获取数据库用户名,从 16.9.1 版本开始
    猜你喜欢
    • 1970-01-01
    • 2022-12-19
    • 1970-01-01
    • 2017-09-02
    • 1970-01-01
    • 2019-12-10
    • 2021-12-01
    • 2018-05-09
    • 1970-01-01
    相关资源
    最近更新 更多