Class SQLiteBulkCopy
- Namespace
- LinqToDB.Internal.DataProvider.SQLite
- Assembly
- linq2db.dll
public class SQLiteBulkCopy : BasicBulkCopy
- Inheritance
-
objectSQLiteBulkCopy
- Inherited Members
- Extension Methods
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
GetInsertInto(MultipleRowsHelper)
Returns the INSERT INTO {tableName} fragment used at the start of bulk INSERT statements in MultipleRows bulk copy mode.
Override in provider-specific bulk copy classes to inject directives between INSERT and INTO, such as OR IGNORE.
protected override string GetInsertInto(MultipleRowsHelper helper)
Parameters
helperMultipleRowsHelper
Returns
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