Table of Contents

Struct SqliteNodeInterpreterOptions

Namespace
LfrlAnvil.Sqlite
Assembly
LfrlAnvil.Sqlite.dll

Represents available options for SqliteNodeInterpreter.

public readonly struct SqliteNodeInterpreterOptions
Inherited Members

Fields

Default

Represents default options.

public static readonly SqliteNodeInterpreterOptions Default

Field Value

SqliteNodeInterpreterOptions

Properties

ArePositionalParametersEnabled

Specifies whether positional SqliteParameter instances are enabled.

public bool ArePositionalParametersEnabled { get; }

Property Value

bool

IsAggregateFunctionOrderingEnabled

Specifies whether SqlSortTraitNode instances that decorate aggregate function nodes should be included or ignored.

public bool IsAggregateFunctionOrderingEnabled { get; }

Property Value

bool

IsStrictModeEnabled

Specifies whether the STRICT mode is enabled for table creation.

public bool IsStrictModeEnabled { get; }

Property Value

bool

IsUpdateFromEnabled

Specifies whether the UPDATE FROM syntax is supported.

public bool IsUpdateFromEnabled { get; }

Property Value

bool

IsUpdateOrDeleteLimitEnabled

Specifies whether the ORDER BY, LIMIT and OFFSET clauses are enabled for UPDATE and DELETE statements.

public bool IsUpdateOrDeleteLimitEnabled { get; }

Property Value

bool

TypeDefinitions

public SqliteColumnTypeDefinitionProvider? TypeDefinitions { get; }

Property Value

SqliteColumnTypeDefinitionProvider

Remarks

Default SqliteColumnTypeDefinitionProvider instance built by SqliteColumnTypeDefinitionProviderBuilder will be used when this is null.

UpsertOptions

Specifies SqliteUpsertOptions that defines interpreter's behavior during SqlUpsertNode interpretation.

public SqliteUpsertOptions UpsertOptions { get; }

Property Value

SqliteUpsertOptions

Methods

EnableAggregateFunctionOrdering(bool)

[Pure]
public SqliteNodeInterpreterOptions EnableAggregateFunctionOrdering(bool enabled = true)

Parameters

enabled bool

Value to set. Equal to true by default.

Returns

SqliteNodeInterpreterOptions

New SqliteNodeInterpreterOptions instance.

EnablePositionalParameters(bool)

Creates a new SqliteNodeInterpreterOptions instance with changed ArePositionalParametersEnabled.

[Pure]
public SqliteNodeInterpreterOptions EnablePositionalParameters(bool enabled = true)

Parameters

enabled bool

Value to set. Equal to true by default.

Returns

SqliteNodeInterpreterOptions

New SqliteNodeInterpreterOptions instance.

EnableStrictMode(bool)

Creates a new SqliteNodeInterpreterOptions instance with changed IsStrictModeEnabled.

[Pure]
public SqliteNodeInterpreterOptions EnableStrictMode(bool enabled = true)

Parameters

enabled bool

Value to set. Equal to true by default.

Returns

SqliteNodeInterpreterOptions

New SqliteNodeInterpreterOptions instance.

EnableUpdateFrom(bool)

Creates a new SqliteNodeInterpreterOptions instance with changed IsUpdateFromEnabled.

[Pure]
public SqliteNodeInterpreterOptions EnableUpdateFrom(bool enabled = true)

Parameters

enabled bool

Value to set. Equal to true by default.

Returns

SqliteNodeInterpreterOptions

New SqliteNodeInterpreterOptions instance.

EnableUpdateOrDeleteLimit(bool)

Creates a new SqliteNodeInterpreterOptions instance with changed IsUpdateOrDeleteLimitEnabled.

[Pure]
public SqliteNodeInterpreterOptions EnableUpdateOrDeleteLimit(bool enabled = true)

Parameters

enabled bool

Value to set. Equal to true by default.

Returns

SqliteNodeInterpreterOptions

New SqliteNodeInterpreterOptions instance.

SetTypeDefinitions(SqliteColumnTypeDefinitionProvider?)

Creates a new SqliteNodeInterpreterOptions instance with changed TypeDefinitions.

[Pure]
public SqliteNodeInterpreterOptions SetTypeDefinitions(SqliteColumnTypeDefinitionProvider? typeDefinitions)

Parameters

typeDefinitions SqliteColumnTypeDefinitionProvider

Value to set.

Returns

SqliteNodeInterpreterOptions

New SqliteNodeInterpreterOptions instance.

SetUpsertOptions(SqliteUpsertOptions)

Creates a new SqliteNodeInterpreterOptions instance with changed UpsertOptions.

[Pure]
public SqliteNodeInterpreterOptions SetUpsertOptions(SqliteUpsertOptions options)

Parameters

options SqliteUpsertOptions

Value to set.

Returns

SqliteNodeInterpreterOptions

New SqliteNodeInterpreterOptions instance.