Table of Contents

Class ClickHouseTools

Namespace
LinqToDB.DataProvider.ClickHouse
Assembly
linq2db.dll
public static class ClickHouseTools
Inheritance
ClickHouseTools

Properties

DefaultBulkCopyType

Default bulk copy mode. Default value: BulkCopyType.ProviderSpecific.

[Obsolete("Use ClickHouseOptions.Default.BulkCopyType instead.")]
public static BulkCopyType DefaultBulkCopyType { get; set; }

Property Value

BulkCopyType

Methods

AsClickHouse<TSource>(ITable<TSource>)

[Sql.QueryExtension(null, Sql.QueryExtensionScope.None, typeof(NoneExtensionBuilder))]
public static IClickHouseSpecificTable<TSource> AsClickHouse<TSource>(this ITable<TSource> table) where TSource : notnull

Parameters

table ITable<TSource>

Returns

IClickHouseSpecificTable<TSource>

Type Parameters

TSource

AsClickHouse<TSource>(IQueryable<TSource>)

[Sql.QueryExtension(null, Sql.QueryExtensionScope.None, typeof(NoneExtensionBuilder))]
public static IClickHouseSpecificQueryable<TSource> AsClickHouse<TSource>(this IQueryable<TSource> source) where TSource : notnull

Parameters

source IQueryable<TSource>

Returns

IClickHouseSpecificQueryable<TSource>

Type Parameters

TSource

CreateDataConnection(DbConnection, ClickHouseProvider)

public static DataConnection CreateDataConnection(DbConnection connection, ClickHouseProvider provider = ClickHouseProvider.Octonica)

Parameters

connection DbConnection
provider ClickHouseProvider

Returns

DataConnection

CreateDataConnection(DbTransaction, ClickHouseProvider)

public static DataConnection CreateDataConnection(DbTransaction transaction, ClickHouseProvider provider = ClickHouseProvider.Octonica)

Parameters

transaction DbTransaction
provider ClickHouseProvider

Returns

DataConnection

CreateDataConnection(string, ClickHouseProvider)

public static DataConnection CreateDataConnection(string connectionString, ClickHouseProvider provider = ClickHouseProvider.Octonica)

Parameters

connectionString string
provider ClickHouseProvider

Returns

DataConnection

GetDataProvider(ClickHouseProvider)

public static IDataProvider GetDataProvider(ClickHouseProvider provider = ClickHouseProvider.Octonica)

Parameters

provider ClickHouseProvider

Returns

IDataProvider