Class SQLiteBulkCopy
- Namespace
- LinqToDB.Internal.DataProvider.SQLite
- Assembly
- linq2db.dll
public class SQLiteBulkCopy : BasicBulkCopy
- Inheritance
-
SQLiteBulkCopy
- Inherited Members
- Extension Methods
Constructors
SQLiteBulkCopy()
public SQLiteBulkCopy()
Properties
MaxParameters
protected override int MaxParameters { get; }
Property Value
Remarks
Settings based on https://www.jooq.org/doc/3.12/manual/sql-building/dsl-context/custom-settings/settings-inline-threshold/ We subtract 1 based on possibility of ADO Provider using parameter for command.
MaxSqlLength
protected override int MaxSqlLength { get; }
Property Value
Remarks
Based on https://www.sqlite.org/limits.html. Since SQLite is parsed locally by the lib, we aren't worried about network congestion and keep the max.
Methods
MultipleRowsCopyAsync<T>(ITable<T>, DataOptions, IAsyncEnumerable<T>, CancellationToken)
protected override Task<BulkCopyRowsCopied> MultipleRowsCopyAsync<T>(ITable<T> table, DataOptions options, IAsyncEnumerable<T> source, CancellationToken cancellationToken) where T : notnull
Parameters
tableITable<T>optionsDataOptionssourceIAsyncEnumerable<T>cancellationTokenCancellationToken
Returns
Type Parameters
T
MultipleRowsCopyAsync<T>(ITable<T>, DataOptions, IEnumerable<T>, CancellationToken)
protected override Task<BulkCopyRowsCopied> MultipleRowsCopyAsync<T>(ITable<T> table, DataOptions options, IEnumerable<T> source, CancellationToken cancellationToken) where T : notnull
Parameters
tableITable<T>optionsDataOptionssourceIEnumerable<T>cancellationTokenCancellationToken
Returns
Type Parameters
T
MultipleRowsCopy<T>(ITable<T>, DataOptions, IEnumerable<T>)
protected override BulkCopyRowsCopied MultipleRowsCopy<T>(ITable<T> table, DataOptions options, IEnumerable<T> source) where T : notnull
Parameters
tableITable<T>optionsDataOptionssourceIEnumerable<T>
Returns
Type Parameters
T