Skip to content

Commit da08baa

Browse files
Refactor client configuration (#68)
* Refactor client configuration with new ClickHouseClientSettings class for more structured and DI-friendly config * Add and update tests with new configuration approach * Update examples
1 parent 9a4dca0 commit da08baa

20 files changed

+2060
-198
lines changed

ClickHouse.Driver.Tests/ADO/ClickHouseClientSettingsTests.cs

Lines changed: 669 additions & 0 deletions
Large diffs are not rendered by default.

ClickHouse.Driver.Tests/ADO/ConnectionStringBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public void ShouldHaveReasonableDefaults()
1212
{
1313
Assert.That(new ClickHouseConnectionStringBuilder().Port, Is.EqualTo(8123));
1414
Assert.That(new ClickHouseConnectionStringBuilder("Protocol=https").Port, Is.EqualTo(8443));
15-
Assert.That(new ClickHouseConnectionStringBuilder().Database, Is.EqualTo("default"));
15+
Assert.That(new ClickHouseConnectionStringBuilder().Database, Is.EqualTo(""));
1616
Assert.That(new ClickHouseConnectionStringBuilder().Username, Is.EqualTo("default"));
1717
});
1818
}

0 commit comments

Comments
 (0)