簡體   English   中英

SchemaCrawler 用戶名和角色

[英]SchemaCrawler user name and roles

我在我的項目中使用模式爬蟲。 有什么方法可以獲取用戶及其角色? 目錄 object 不包含任何此類信息。

我正在使用這個配置:

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

SchemaCrawler不提供將用戶和角色作為數據庫元數據目錄的一部分來獲取的方法。 但是,您可以執行任意 SQL 查詢,並在 SchemaCrawler output 中顯示結果。 根據您的數據庫,您可能能夠通過 SQL 查詢獲取用戶和角色信息,因此您可以將其包含在 SchemaCrawler output 中。 請參閱 SchemaCrawler 示例(包含在下載中),了解如何使用 SchemaCrawler 運行 SQL 查詢。

Sualeh Fatehi, SchemaCrawler

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM