Issue #68: Generate documentation for SQL connectors #69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the SQL technology type to the MetricsHub connector and adds support for SQL criteria. The most important changes include updates to the
TechnologyType
enum, the addition of theSqlCriterion
class, and modifications to the visitor pattern to handle SQL criteria.SQL Technology Integration:
src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/model/common/TechnologyType.java
: Added theSQL
technology type to theTechnologyType
enum and updated the mapping. [1] [2]SQL Criterion Support:
src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/model/criteria/SqlCriterion.java
: Introduced theSqlCriterion
class to represent SQL-based criteria.src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/model/criteria/CriterionFactory.java
: Added a method to createSqlCriterion
instances and updated the factory map. [1] [2]src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/model/criteria/ICriterionVisitor.java
: Updated the visitor interface to include a method for visitingSqlCriterion
instances.src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/model/criteria/CriterionSinkProduceVisitor.java
: Implemented the visitor method to handleSqlCriterion
instances and generate the corresponding sink content.Additional Enhancements:
src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/ConnectorPageProducer.java
: Added logic to handle SQL technology in theproduceMetricsHubExamplesContent
method.src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/model/common/ConnectorDefaultVariable.java
: Added a Javadoc comment to describe the class.Tested: