$writeInsertable method
GenerationContext
$writeInsertable(
- TableInfo<
Table, dynamic> table, - Insertable insertable, {
- int? startIndex,
inherited
Writes column names and VALUES for an insert statement.
Used by generated code.
Implementation
@protected
GenerationContext $writeInsertable(
TableInfo table,
Insertable insertable, {
int? startIndex,
}) {
final context = GenerationContext.fromDb(this)
..explicitVariableIndex = startIndex;
table.validateIntegrity(insertable, isInserting: true);
InsertStatement(
this,
table,
).writeInsertable(context, insertable.toColumns(true));
return context;
}