Skip to content

Conversation

@alex-clickhouse
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
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 adds comprehensive examples demonstrating advanced features and usage patterns of the ClickHouse.Driver, including dependency injection, HTTP client configuration, complex data types, and advanced query features.

Key changes:

  • Added 10 new example files covering DI, HTTP client configuration, complex types, and advanced features (Query IDs, Sessions, long-running queries, custom settings, query statistics)
  • Added appsettings.example.json for configuration binding demonstrations
  • Updated existing examples to follow consistent coding style (trailing commas)

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
examples/appsettings.example.json Configuration template for DI example
examples/Core_001_BasicUsage.cs Updated to use ClickHouseClientSettings object instead of connection string
examples/Core_002_ConnectionStringConfiguration.cs Added trailing commas for consistency
examples/Core_003_DependencyInjection.cs New example demonstrating DI integration with IServiceCollection and configuration binding
examples/Core_004_HttpClientConfiguration.cs New example showing custom HttpClient/IHttpClientFactory usage for SSL, proxy, and timeout configuration
examples/DataTypes_003_ComplexTypes.cs New example demonstrating Arrays, Maps, Tuples, IP addresses, and Nested structures
examples/Advanced_001_QueryIdUsage.cs New example showing Query ID tracking and monitoring
examples/Advanced_002_SessionIdUsage.cs New example demonstrating Session ID usage for temporary tables
examples/Advanced_003_LongRunningQueries.cs New example showing progress headers and fire-and-forget patterns
examples/Advanced_004_CustomSettings.cs New example demonstrating custom ClickHouse server settings
examples/Advanced_005_QueryStatistics.cs New example showing query statistics access
examples/Insert_001_SimpleDataInsert.cs Added trailing commas for consistency
examples/Insert_002_BulkInsert.cs Added trailing commas for consistency
examples/Select_002_SelectMetadata.cs Added sample data insertion for better demonstration
examples/README.md Updated with new examples and fixed link to ComplexTypes example
examples/Program.cs Added calls to new examples with conditional compilation for .NET 7+
examples/ClickHouse.Driver.Examples.csproj Added configuration packages and appsettings.example.json copy directive
examples/Troubleshooting_001_LoggingConfiguration.cs Added trailing comma for consistency

Copy link
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

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

@alex-clickhouse alex-clickhouse merged commit d3a6aaf into main Nov 25, 2025
17 checks passed
@alex-clickhouse alex-clickhouse deleted the more-examples branch November 25, 2025 15:31
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