Table of Contents

Class InsertStatement

Namespace
The.SQL.QIR.Statements
Assembly
Instagile.dll

Two-level AST: InsertStatement has the target, and the cases of InsertExpression have the source.

[MessagePackObject(false)]
public sealed record InsertStatement : IEquatable<InsertStatement>
Inheritance
InsertStatement
Implements
Inherited Members

Constructors

InsertStatement(Table, RecordList<string>, SelectStatement)

public InsertStatement(Table targetTable, RecordList<string> targetColumns, SelectStatement sourceQuery)

Parameters

targetTable Table
targetColumns RecordList<string>
sourceQuery SelectStatement

InsertStatement(Table, RecordList<Assignment>)

public InsertStatement(Table targetTable, RecordList<Assignment> setValues)

Parameters

targetTable Table
setValues RecordList<Assignment>

InsertStatement(Table, InsertExpression)

Two-level AST: InsertStatement has the target, and the cases of InsertExpression have the source.

public InsertStatement(Table TargetTable, InsertExpression Expression)

Parameters

TargetTable Table
Expression InsertExpression

Properties

Expression

[Key(1)]
public InsertExpression Expression { get; init; }

Property Value

InsertExpression

TargetTable

[Key(0)]
public Table TargetTable { get; init; }

Property Value

Table

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.