MssqlInsert class

A single-table INSERT.

Available extensions
Annotations
  • @immutable

Constructors

MssqlInsert.into(String identifier)
factory
MssqlInsert.intoParts(List<String> parts)
The parts-based form; see MssqlSource.parts.
factory

Properties

assignments Map<String, Object?>
final
hashCode int
The hash code for this object.
no setterinherited
output MssqlOutputClause?
What the statement reports about the rows it wrote, if anything.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverDefaults bool
Whether this is an INSERT … DEFAULT VALUES.
final
source MssqlSource
final

Methods

compile({MssqlDialect dialect = MssqlDialect.sql2012}) MssqlStatement
defaultValues() MssqlInsert
INSERT INTO … DEFAULT VALUES: every column takes its own default.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
returning(MssqlOutputClause clause) MssqlInsert
Reports the written rows through an OUTPUT clause.
run(MssqlSession session, {MssqlDialect dialect = MssqlDialect.sql2012, Duration? timeout}) Future<int>

Available on MssqlInsert, provided by the MssqlInsertExecution extension

runReturning(MssqlSession session, {MssqlDialect dialect = MssqlDialect.sql2012, Duration? timeout}) Future<List<MssqlRow>>

Available on MssqlInsert, provided by the MssqlInsertExecution extension

Runs the statement and returns the rows its OUTPUT clause produced.
toString() String
A string representation of this object.
inherited
using(Iterable<String> columns, MssqlSelectQuery query) MssqlInsertSelect
Builds INSERT INTO (...) SELECT ... from a composable query.
values(Map<String, Object?> columns) MssqlInsert

Operators

operator ==(Object other) bool
The equality operator.
inherited