Files
Henry Zhang 852f0682d3 refactor(quality): fix 21 low-risk CodeQL quality alerts (#160)
- local-variable-is-never-read (3): dead host/port/database locals in
  AbstractJdbcDriverCustomService (subclasses read config themselves)
- unused-container (2): unused `valid` set in AlarmRuleTriggerServiceImpl;
  unused driverSenderService field/ctor param in CanDriver (+ test)
- unknown-javadoc-parameter (12): dangling ctor Javadoc on
  @RequiredArgsConstructor classes / stale @param
- call-to-object-tostring (3): @ToString on MessageHeader (root cause);
  field-log MetadataEventDTO instead of hash
- constant-comparison (1): DriverInitRunner == → >= (defensive)

No behavior change. Compile clean (agentic/can/data/auth/mqtt/driver/sql).
2026-08-03 21:49:03 +08:00
..

DC3 Common SQL

Overview

dc3-common-sql is the shared base for the database (JDBC) drivers of the IoT DC3 platform. It provides AbstractJdbcDriverCustomService, a common driver-service base that handles JDBC connection management (via HikariCP) and query execution, so each database driver only supplies its dialect/connection specifics.

Module Information

  • Group ID: io.github.pnoker
  • Artifact ID: dc3-common-sql
  • Version: 2026.5.22

Key Components

Component Purpose
AbstractJdbcDriverCustomService Base driver service for JDBC sources — pooled connections + queries

Dependencies

  • dc3-common-driver — Driver SDK that the base service plugs into
  • HikariCP — JDBC connection pool

Build Instructions

mvn -s ../../.mvn/settings.xml clean package
  • dc3-driver-mysql, dc3-driver-oracle, dc3-driver-postgresql, dc3-driver-sqlserver — JDBC drivers that extend AbstractJdbcDriverCustomService

License

Copyright 2016-present the IoT DC3 original author or authors.

Licensed under the GNU Affero General Public License v3.0 (AGPL 3.0)