Table of Contents

Class SQLiteBulkCopy

Namespace
LinqToDB.Internal.DataProvider.SQLite
Assembly
linq2db.dll
public class SQLiteBulkCopy : BasicBulkCopy
Inheritance
object
SQLiteBulkCopy
Inherited Members
Extension Methods

Properties

MaxParameters

protected override int MaxParameters { get; }

Property Value

int

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

int

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

helper MultipleRowsHelper

Returns

string

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

table ITable<T>
options DataOptions
source IAsyncEnumerable<T>
cancellationToken CancellationToken

Returns

Task<BulkCopyRowsCopied>

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

table ITable<T>
options DataOptions
source IEnumerable<T>
cancellationToken CancellationToken

Returns

Task<BulkCopyRowsCopied>

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

table ITable<T>
options DataOptions
source IEnumerable<T>

Returns

BulkCopyRowsCopied

Type Parameters

T