Skip to content

Commit 698ccfb

Browse files
authored
Merge pull request #123 from schemacrawler/v17.1.2-1
v17.1.3-1
2 parents 72c5e8f + cb449bf commit 698ccfb

32 files changed

+158
-252
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# ========================================================================
88

99
# Provided arguments
10-
ARG FROM_IMAGE=schemacrawler/schemacrawler:v17.1.1
10+
ARG FROM_IMAGE=schemacrawler/schemacrawler:v17.1.3
1111

1212
# BUILDER stage - Build SchemaCrawler AI
1313
FROM maven:3.9-eclipse-temurin-25 AS builder

changelog.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22

33
SchemaCrawler AI release notes.
44

5-
<a name="v17.1.1-2"></a>
6-
## Release 16.28.2-2 - 2025-09-29
5+
<a name="v17.1.3-1"></a>
6+
## Release 17.1.3-1 - 2025-09-29
7+
8+
- Build against latest SchemaCrawler version
9+
10+
11+
<a name="16.29.1-1"></a>
12+
## Release 16.29.1-1 - 2025-09-29
713

814
- Remove "aichat" command
915

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-ai-aggregator</artifactId>
9-
<version>17.1.1-1</version>
9+
<version>17.1.3-1</version>
1010
<packaging>pom</packaging>
1111
<name>SchemaCrawler AI [Aggregator]</name>
1212

schemacrawler-ai-core/pom.xml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>us.fatehi</groupId>
99
<artifactId>schemacrawler-ai-parent</artifactId>
10-
<version>17.1.1-1</version>
10+
<version>17.1.3-1</version>
1111
<relativePath>../schemacrawler-ai-parent</relativePath>
1212
</parent>
1313
<artifactId>schemacrawler-ai-core</artifactId>
@@ -50,14 +50,8 @@
5050
</dependency>
5151
<dependency>
5252
<groupId>us.fatehi</groupId>
53-
<artifactId>schemacrawler-api</artifactId>
54-
<type>test-jar</type>
55-
<scope>test</scope>
56-
</dependency>
57-
<dependency>
58-
<groupId>us.fatehi</groupId>
59-
<artifactId>schemacrawler-tools</artifactId>
60-
<type>test-jar</type>
53+
<artifactId>schemacrawler-test-utility</artifactId>
54+
<version>${schemacrawler.version}</version>
6155
<scope>test</scope>
6256
</dependency>
6357
<dependency>

schemacrawler-ai-core/src/main/java/schemacrawler/tools/ai/functions/AbstractJsonFunctionExecutor.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@
99
package schemacrawler.tools.ai.functions;
1010

1111
import schemacrawler.schemacrawler.SchemaCrawlerOptions;
12-
import schemacrawler.tools.ai.tools.AbstractSchemaCrawlerFunctionExecutor;
12+
import schemacrawler.tools.ai.tools.AbstractFunctionExecutor;
1313
import schemacrawler.tools.ai.tools.FunctionParameters;
14+
import schemacrawler.tools.ai.tools.JsonFunctionReturn;
1415
import schemacrawler.utility.MetaDataUtility;
1516
import us.fatehi.utility.property.PropertyName;
1617

1718
public abstract class AbstractJsonFunctionExecutor<P extends FunctionParameters>
18-
extends AbstractSchemaCrawlerFunctionExecutor<P> {
19+
extends AbstractFunctionExecutor<P> {
1920

2021
protected AbstractJsonFunctionExecutor(final PropertyName functionName) {
2122
super(functionName);
2223
}
2324

25+
@Override
26+
public abstract JsonFunctionReturn call() throws Exception;
27+
2428
protected final void refilterCatalog() {
2529
final SchemaCrawlerOptions options = createSchemaCrawlerOptions();
2630
MetaDataUtility.reduceCatalog(catalog, options);

schemacrawler-ai-core/src/main/java/schemacrawler/tools/ai/functions/DescribeRoutinesFunctionExecutor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import schemacrawler.tools.ai.model.AdditionalRoutineDetails;
2424
import schemacrawler.tools.ai.model.CatalogDocument;
2525
import schemacrawler.tools.ai.model.CompactCatalogUtility;
26-
import schemacrawler.tools.ai.tools.FunctionReturn;
2726
import schemacrawler.tools.ai.tools.JsonFunctionReturn;
2827
import us.fatehi.utility.property.PropertyName;
2928

@@ -35,7 +34,7 @@ protected DescribeRoutinesFunctionExecutor(final PropertyName functionName) {
3534
}
3635

3736
@Override
38-
public FunctionReturn call() throws Exception {
37+
public JsonFunctionReturn call() throws Exception {
3938
refilterCatalog();
4039

4140
final Collection<AdditionalRoutineDetails> routineDetails = getRoutineDetails();

schemacrawler-ai-core/src/main/java/schemacrawler/tools/ai/functions/DescribeTablesFunctionExecutor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import schemacrawler.tools.ai.model.AdditionalTableDetails;
2323
import schemacrawler.tools.ai.model.CatalogDocument;
2424
import schemacrawler.tools.ai.model.CompactCatalogUtility;
25-
import schemacrawler.tools.ai.tools.FunctionReturn;
2625
import schemacrawler.tools.ai.tools.JsonFunctionReturn;
2726
import us.fatehi.utility.property.PropertyName;
2827

@@ -34,7 +33,7 @@ protected DescribeTablesFunctionExecutor(final PropertyName functionName) {
3433
}
3534

3635
@Override
37-
public FunctionReturn call() throws Exception {
36+
public JsonFunctionReturn call() throws Exception {
3837
refilterCatalog();
3938

4039
final Collection<AdditionalTableDetails> tableDetails = getTableDetails();

schemacrawler-ai-core/src/main/java/schemacrawler/tools/ai/functions/LintFunctionExecutor.java

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,8 @@
88

99
package schemacrawler.tools.ai.functions;
1010

11-
import schemacrawler.inclusionrule.ExcludeAll;
1211
import schemacrawler.inclusionrule.InclusionRule;
13-
import schemacrawler.schemacrawler.GrepOptionsBuilder;
14-
import schemacrawler.schemacrawler.LimitOptionsBuilder;
15-
import schemacrawler.schemacrawler.SchemaCrawlerOptions;
16-
import schemacrawler.schemacrawler.SchemaCrawlerOptionsBuilder;
1712
import schemacrawler.tools.ai.tools.AbstractExecutableFunctionExecutor;
18-
import schemacrawler.tools.command.text.schema.options.SchemaTextOptionsBuilder;
19-
import schemacrawler.tools.options.Config;
2013
import us.fatehi.utility.property.PropertyName;
2114

2215
public final class LintFunctionExecutor
@@ -26,39 +19,13 @@ protected LintFunctionExecutor(final PropertyName functionName) {
2619
super(functionName);
2720
}
2821

29-
@Override
30-
public boolean usesConnection() {
31-
return true;
32-
}
33-
34-
@Override
35-
protected Config createAdditionalConfig() {
36-
final SchemaTextOptionsBuilder schemaTextOptionsBuilder = SchemaTextOptionsBuilder.builder();
37-
return schemaTextOptionsBuilder.noInfo().toConfig();
38-
}
39-
40-
@Override
41-
protected SchemaCrawlerOptions createSchemaCrawlerOptions() {
42-
final LimitOptionsBuilder limitOptionsBuilder =
43-
LimitOptionsBuilder.builder()
44-
.includeSynonyms(new ExcludeAll())
45-
.includeSequences(new ExcludeAll())
46-
.includeRoutines(new ExcludeAll());
47-
final InclusionRule grepTablesPattern = makeInclusionRule(commandOptions.tableName());
48-
final GrepOptionsBuilder grepOptionsBuilder =
49-
GrepOptionsBuilder.builder().includeGreppedTables(grepTablesPattern);
50-
return SchemaCrawlerOptionsBuilder.newSchemaCrawlerOptions()
51-
.withLimitOptions(limitOptionsBuilder.toOptions())
52-
.withGrepOptions(grepOptionsBuilder.toOptions());
53-
}
54-
5522
@Override
5623
protected String getCommand() {
5724
return "lint";
5825
}
5926

6027
@Override
61-
protected boolean hasResults() {
62-
return !catalog.getTables().isEmpty();
28+
protected InclusionRule grepTablesInclusionRule() {
29+
return makeInclusionRule(commandOptions.tableName());
6330
}
6431
}

schemacrawler-ai-core/src/main/java/schemacrawler/tools/ai/functions/ListAcrossTablesFunctionExecutor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import schemacrawler.tools.ai.model.ForeignKeyDocument;
3434
import schemacrawler.tools.ai.model.IndexDocument;
3535
import schemacrawler.tools.ai.model.TriggerDocument;
36-
import schemacrawler.tools.ai.tools.FunctionReturn;
3736
import schemacrawler.tools.ai.tools.JsonFunctionReturn;
3837
import us.fatehi.utility.property.PropertyName;
3938

@@ -45,7 +44,7 @@ protected ListAcrossTablesFunctionExecutor(final PropertyName functionName) {
4544
}
4645

4746
@Override
48-
public FunctionReturn call() throws Exception {
47+
public JsonFunctionReturn call() throws Exception {
4948
refilterCatalog();
5049

5150
final Collection<DependantObject<Table>> dependantObjects = new ArrayList<>();

schemacrawler-ai-core/src/main/java/schemacrawler/tools/ai/functions/ListFunctionExecutor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import schemacrawler.schemacrawler.SchemaCrawlerOptionsBuilder;
2525
import schemacrawler.tools.ai.model.DatabaseObjectDocument;
2626
import schemacrawler.tools.ai.model.DatabaseObjectType;
27-
import schemacrawler.tools.ai.tools.FunctionReturn;
2827
import schemacrawler.tools.ai.tools.JsonFunctionReturn;
2928
import us.fatehi.utility.property.PropertyName;
3029

@@ -36,7 +35,7 @@ protected ListFunctionExecutor(final PropertyName functionName) {
3635
}
3736

3837
@Override
39-
public FunctionReturn call() throws Exception {
38+
public JsonFunctionReturn call() throws Exception {
4039
refilterCatalog();
4140

4241
final Collection<DatabaseObject> databaseObjects = new ArrayList<>();

0 commit comments

Comments
 (0)