compile method

void compile(
  1. StringBuffer buf,
  2. int indent
)

Implementation

void compile(StringBuffer buf, int indent) {
  var i = 0;

  _columns.forEach((name, column) {
    var col = MariaDbGenerator.compileColumn(column);
    if (i++ > 0) buf.writeln(',');

    for (var i = 0; i < indent; i++) {
      buf.write('  ');
    }

    buf.write('$name $col');
  });
}