$write method
- @protected
- SqlComponent component, {
- bool? hasMultipleTables,
- int? startIndex,
Will be used by generated code to resolve inline Dart components in sql by
writing the component.
Implementation
@protected
StatementBuffer $write(
SqlComponent component, {
bool? hasMultipleTables,
int? startIndex,
}) {
final compiler = dialect.createCompiler();
compiler.statement
..variableOffset = startIndex ?? 0
..hasMultipleTables = hasMultipleTables ?? false;
component.compileWith(compiler);
return compiler.statement;
}