-
Notifications
You must be signed in to change notification settings - Fork 8
Add more examples #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this 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.jsonfor 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 |
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this 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.
No description provided.