Skip to content

Cleanup, minor fixes, xml docs#172

Merged
alex-clickhouse merged 2 commits intomainfrom
cleanup-and-fixes
Jan 15, 2026
Merged

Cleanup, minor fixes, xml docs#172
alex-clickhouse merged 2 commits intomainfrom
cleanup-and-fixes

Conversation

@alex-clickhouse
Copy link
Copy Markdown
Collaborator

@alex-clickhouse alex-clickhouse commented Jan 15, 2026

Mostly formatting stuff.


Note

Adds and refines ADO APIs and diagnostics

  • New InsertRawStreamAsync for direct streaming inserts; PostStreamAsync overloads now return HttpResponseMessage and accept optional queryId
  • Per-command auth override via ClickHouseCommand.BearerToken; command now exposes ServerTimezone and enhanced query stats handling
  • ClickHouseClientSettings: Database now settable; EnableDebugMode integrates with TraceHelper (NET5+) for low-level network tracing; validation tightened
  • Expanded diagnostics/logging: new TraceHelper class; richer HttpClient/handler config logging; small parsing perf tweak in ClickHouseServerException

Misc and quality

  • JSON type handling uses invariant culture where appropriate; minor type decoder tweaks; small BFloat16/utility cleanups
  • PublicAPI files updated (feature flags, new members) and .editorconfig adds PublicAPI analyzer severities; csproj cleanup

Written by Cursor Bugbot for commit c1d63ae. This will update automatically on new commits. Configure here.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ClickHouse.Driver/ClickHouseServerException.cs 0.00% 0 Missing and 1 partial ⚠️
ClickHouse.Driver/Diagnostic/TraceHelper.cs 50.00% 0 Missing and 1 partial ⚠️
ClickHouse.Driver/Types/JsonType.cs 66.66% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR focuses on code cleanup, documentation improvements, and minor API refinements across the ClickHouse.Driver codebase.

Changes:

  • Added comprehensive XML documentation to ADO.NET types (ClickHouseCommand, ClickHouseDbParameter, ClickHouseConnection)
  • Converted ClickHouseDecimal.MaxDivisionPrecision from a field to a property for better API design
  • Improved diagnostics with culture-invariant formatting for BigInteger and ClickHouseDecimal in JSON serialization
  • Added analyzer suppressions for intentional design decisions (certificate validation skip, CS0109 warnings)
  • Code formatting improvements (multi-line statement formatting, constant extraction in logging)
  • PublicAPI surface updates reflecting new members and feature flags

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ClickHouse.Driver/Utility/EnumerableExtensions.cs Reformatted do-while statement
ClickHouse.Driver/Types/JsonType.cs Added culture-invariant formatting for numerics, improved comment placement, refined return type
ClickHouse.Driver/Types/BinaryTypeDecoder.cs Added pragma to suppress false-positive analyzer warning, refined return type
ClickHouse.Driver/Types/BFloat16Type.cs Improved struct field formatting
ClickHouse.Driver/PublicAPI/*.txt Updated public API surface tracking
ClickHouse.Driver/Numerics/ClickHouseDecimal.cs Converted field to property, updated XML docs
ClickHouse.Driver/Logging/LoggingHelpers.cs Extracted constant for message format
ClickHouse.Driver/IClickHouseConnection.cs Added pragma to suppress CS0109 warning
ClickHouse.Driver/Http/HttpHandlerProvider.cs Added security analyzer suppression with justification
ClickHouse.Driver/Http/HttpClientHelpers.cs Added performance analyzer suppression
ClickHouse.Driver/Diagnostic/TraceHelper.cs Improved log message formatting
ClickHouse.Driver/DependencyInjection/ClickHouseServiceCollectionExtensions.cs Improved method call formatting
ClickHouse.Driver/ClickHouseServerException.cs Added .NET 6+ optimization using Span
ClickHouse.Driver/ClickHouse.Driver.csproj Removed duplicate AdditionalFiles entry
ClickHouse.Driver/ADO/Parameters/ClickHouseDbParameter.cs Added comprehensive XML documentation
ClickHouse.Driver/ADO/Feature.cs Enhanced obsolete attribute message
ClickHouse.Driver/ADO/ClickHouseConnectionStringBuilder.cs Added analyzer suppression, formatting fix
ClickHouse.Driver/ADO/ClickHouseConnection.cs Property formatting, pragma suppressions
ClickHouse.Driver/ADO/ClickHouseCommand.cs Added comprehensive XML documentation
ClickHouse.Driver/ADO/ClickHouseClientSettings.cs Removed redundant initializer, improved HashCode usage
.editorconfig, ClickHouse.Driver/.editorconfig Updated analyzer severity settings

Comment thread ClickHouse.Driver/Http/HttpHandlerProvider.cs Outdated
Comment thread ClickHouse.Driver/Types/JsonType.cs
Comment thread ClickHouse.Driver/Types/BinaryTypeDecoder.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@alex-clickhouse alex-clickhouse merged commit 8bf4ded into main Jan 15, 2026
17 checks passed
@alex-clickhouse alex-clickhouse deleted the cleanup-and-fixes branch January 15, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants