Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dapper/FeatureSupport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ internal class FeatureSupport
private static readonly FeatureSupport
Default = new FeatureSupport(false),
Postgres = new FeatureSupport(true),
ClickHouse = new FeatureSupport(true);
ClickHouse = new FeatureSupport(true),
YDB = new FeatureSupport(true);

/// <summary>
/// Gets the feature set based on the passed connection
Expand All @@ -22,6 +23,7 @@ public static FeatureSupport Get(IDbConnection? connection)
string? name = connection?.GetType().Name;
if (string.Equals(name, "npgsqlconnection", StringComparison.OrdinalIgnoreCase)) return Postgres;
if (string.Equals(name, "clickhouseconnection", StringComparison.OrdinalIgnoreCase)) return ClickHouse;
if (string.Equals(name, "ydbconnection", StringComparison.OrdinalIgnoreCase)) return YDB;
return Default;
}

Expand Down