Commit e3f2605
authored
Refactor client structure (#219)
* Refactor phase 1: ClickHouseClient skeleton (#205)
* ClickHouseClient skeleton
* null checks
* remove parameter
* No insert parallelism by default
* fix UseSession override
* Add Timeout to QueryOptions
* Adjust xml comment
* Adjust InsertRawStreamAsync for backwards compatibility
* Refactor phase 2: Connection and Command (#207)
* Move ClickHouseConnection logic to Client
* update example
* fix logging tests
* Update client reference when command has its connection changed
* fix role override
* Isolate database changes to connection
* datasource adjustments around disposal
* remove unused usings
* Don't dispose response in PostStreamAsync
* ExecuteRawResultAsync implementation
* Add AddParameter convenience method (#210)
* Refactor phase 3: move binary insert functionality from BulkCopy to ClickHouseClient (#209)
* move binary insert functionality from BulkCopy to ClickHouseClient
* Magic numbers to consts
* fix batch insert issues
* tests and adjustments (#212)
* Update examples following refactoring (#211)
* examples updates
* FINAL performance link
* Test cleanup and claude/readme/releasenotes update (#217)
* disable obsolete warnings in tests using BulkCopy
* CLAUDE.md update
* examples readme update
* release notes update
* fix windows and macos tests?
* win and macos test workflow fixes
* test workflow fix #15
* different approach
* cleanup unnecessary stuff?
* add tests for client constructor
* fix resource cleanup issues
* remove client reference from command, interact with connection instead (prevent stale client reference)
* Add GetClient() to DataSource1 parent d2e142b commit e3f2605
File tree
83 files changed
+4037
-2491
lines changed- .github/workflows
- ClickHouse.Driver.Tests
- ADO
- BulkCopy
- Json
- Logging
- SQL
- Types
- Utilities
- ClickHouse.Driver
- ADO
- Parameters
- Copy
- Diagnostic
- Logging
- Utility
- examples
- Advanced
- AspNet
- Core
- DataTypes
- Insert
- ORM
- Select
- Tables
- Testing
- Troubleshooting
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
83 files changed
+4037
-2491
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | | - | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | | - | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
34 | 63 | | |
35 | 64 | | |
36 | 65 | | |
| |||
68 | 97 | | |
69 | 98 | | |
70 | 99 | | |
71 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
72 | 103 | | |
73 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
74 | 125 | | |
75 | 126 | | |
76 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | 338 | | |
355 | 339 | | |
356 | 340 | | |
| |||
386 | 370 | | |
387 | 371 | | |
388 | 372 | | |
389 | | - | |
390 | | - | |
| 373 | + | |
| 374 | + | |
391 | 375 | | |
392 | 376 | | |
393 | 377 | | |
| |||
665 | 649 | | |
666 | 650 | | |
667 | 651 | | |
668 | | - | |
| 652 | + | |
669 | 653 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
675 | 657 | | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
| 658 | + | |
| 659 | + | |
684 | 660 | | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
691 | 665 | | |
692 | 666 | | |
693 | 667 | | |
694 | | - | |
| 668 | + | |
695 | 669 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
| 670 | + | |
| 671 | + | |
701 | 672 | | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
709 | 684 | | |
710 | 685 | | |
711 | 686 | | |
712 | | - | |
| 687 | + | |
713 | 688 | | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
722 | 692 | | |
723 | | - | |
| 693 | + | |
| 694 | + | |
724 | 695 | | |
725 | | - | |
726 | | - | |
| 696 | + | |
| 697 | + | |
727 | 698 | | |
728 | 699 | | |
729 | 700 | | |
730 | | - | |
| 701 | + | |
731 | 702 | | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
740 | 710 | | |
741 | | - | |
| 711 | + | |
| 712 | + | |
742 | 713 | | |
743 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
744 | 717 | | |
745 | 718 | | |
746 | 719 | | |
747 | | - | |
| 720 | + | |
748 | 721 | | |
749 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
750 | 726 | | |
751 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
752 | 733 | | |
753 | 734 | | |
754 | 735 | | |
755 | | - | |
| 736 | + | |
756 | 737 | | |
757 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
758 | 744 | | |
759 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
760 | 748 | | |
761 | 749 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 116 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments