Table of Contents

Struct CreateTableAsClause

Namespace
NextORM.Core
Assembly
nextorm.core.dll

The options of a CREATE [TEMPORARY] TABLE ... AS SELECT clause, handed to MakeCreateTableAsSelect(CreateTableAsClause, string, KeywordCase) so the dialect can spell the statement natively. Table and Columns are already resolved and, when identifier quoting is enabled, quoted by the caller — the dialect only places them.

public readonly record struct CreateTableAsClause : IEquatable<CreateTableAsClause>
Implements
Inherited Members
Extension Methods

Constructors

CreateTableAsClause(string, bool, bool, IReadOnlyList<string>?, TempTableOnCommit, bool)

The options of a CREATE [TEMPORARY] TABLE ... AS SELECT clause, handed to MakeCreateTableAsSelect(CreateTableAsClause, string, KeywordCase) so the dialect can spell the statement natively. Table and Columns are already resolved and, when identifier quoting is enabled, quoted by the caller — the dialect only places them.

public CreateTableAsClause(string Table, bool Temporary, bool IfNotExists, IReadOnlyList<string>? Columns, TempTableOnCommit OnCommit, bool WithData)

Parameters

Table string

The target table name (resolved and optionally quoted).

Temporary bool

Whether the target is a temporary (session-scoped) table.

IfNotExists bool

Whether the statement carries IF NOT EXISTS.

Columns IReadOnlyList<string>

The declared column names (resolved and optionally quoted), or null for none.

OnCommit TempTableOnCommit

The ON COMMIT action of a temporary table; PreserveRows omits the clause.

WithData bool

Whether the table is populated from the query (WITH NO DATA when false).

Properties

Columns

The declared column names (resolved and optionally quoted), or null for none.

public IReadOnlyList<string>? Columns { get; init; }

Property Value

IReadOnlyList<string>

IfNotExists

Whether the statement carries IF NOT EXISTS.

public bool IfNotExists { get; init; }

Property Value

bool

OnCommit

The ON COMMIT action of a temporary table; PreserveRows omits the clause.

public TempTableOnCommit OnCommit { get; init; }

Property Value

TempTableOnCommit

Table

The target table name (resolved and optionally quoted).

public string Table { get; init; }

Property Value

string

Temporary

Whether the target is a temporary (session-scoped) table.

public bool Temporary { get; init; }

Property Value

bool

WithData

Whether the table is populated from the query (WITH NO DATA when false).

public bool WithData { get; init; }

Property Value

bool