.builder().withSchemaInfoLevel(SchemaInfoLevelBuilder.detailed()) .includeAllRoutines(); final SchemaCrawlerOptions schemaCrawlerOptions = schemaCrawlerOptionsBuilder
public SpecRegistry generateSpecification(DataSource dataSource, String schemaName) throws Exception { SchemaCrawlerOptions options = new SchemaCrawlerOptions(); // Set what details are required in the schema - this affects the // time taken to crawl the schema options.setSchemaInfoLevel(SchemaInfoLevelBuilder.detailed()); if (schemaName != null) { options.setSchemaInclusionRule(s -> s.equals( schemaName )); } Catalog catalog = loadCatalog(dataSource, options); firstPass(catalog); secondPass(catalog); postProcess(catalog); return registry; }