Class ClickHouseDataProvider
- Namespace
- LinqToDB.DataProvider.ClickHouse
- Assembly
- linq2db.dll
public abstract class ClickHouseDataProvider : DynamicDataProviderBase<ClickHouseProviderAdapter>, IDataProvider
- Inheritance
-
ClickHouseDataProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
ClickHouseDataProvider(string, ClickHouseProvider)
protected ClickHouseDataProvider(string name, ClickHouseProvider provider)
Parameters
name
stringprovider
ClickHouseProvider
Properties
Provider
public ClickHouseProvider Provider { get; }
Property Value
SupportedTableOptions
public override TableOptions SupportedTableOptions { get; }
Property Value
Methods
BulkCopyAsync<T>(DataOptions, ITable<T>, IEnumerable<T>, CancellationToken)
public override Task<BulkCopyRowsCopied> BulkCopyAsync<T>(DataOptions options, ITable<T> table, IEnumerable<T> source, CancellationToken cancellationToken) where T : notnull
Parameters
options
DataOptionstable
ITable<T>source
IEnumerable<T>cancellationToken
CancellationToken
Returns
Type Parameters
T
BulkCopy<T>(DataOptions, ITable<T>, IEnumerable<T>)
public override BulkCopyRowsCopied BulkCopy<T>(DataOptions options, ITable<T> table, IEnumerable<T> source) where T : notnull
Parameters
options
DataOptionstable
ITable<T>source
IEnumerable<T>
Returns
Type Parameters
T
CreateConnectionInternal(string)
protected override DbConnection CreateConnectionInternal(string connectionString)
Parameters
connectionString
string
Returns
CreateSqlBuilder(MappingSchema, DataOptions)
public override ISqlBuilder CreateSqlBuilder(MappingSchema mappingSchema, DataOptions dataOptions)
Parameters
mappingSchema
MappingSchemadataOptions
DataOptions
Returns
GetQueryParameterNormalizer()
Returns instance of IQueryParametersNormalizer, which implements normalization logic for parameters of single query. E.g. it could include:
- trimming names that are too long
- removing/replacing unsupported characters
- name deduplication for parameters with same name
public override IQueryParametersNormalizer GetQueryParameterNormalizer()
Returns
GetSchemaProvider()
public override ISchemaProvider GetSchemaProvider()
Returns
GetSqlOptimizer(DataOptions)
public override ISqlOptimizer GetSqlOptimizer(DataOptions dataOptions)
Parameters
dataOptions
DataOptions
Returns
IsDBNullAllowed(DataOptions, DbDataReader, int)
public override bool? IsDBNullAllowed(DataOptions options, DbDataReader reader, int idx)
Parameters
options
DataOptionsreader
DbDataReaderidx
int
Returns
- bool?
SetParameter(DataConnection, DbParameter, string, DbDataType, object?)
public override void SetParameter(DataConnection dataConnection, DbParameter parameter, string name, DbDataType dataType, object? value)
Parameters
dataConnection
DataConnectionparameter
DbParametername
stringdataType
DbDataTypevalue
object