sqlInsertRaw method

void sqlInsertRaw(
  1. Iterable<List> data
)

Insert raw values to SQLite table

Implementation

void sqlInsertRaw(Iterable<List> data) {
  if (data.isEmpty) return;

  if (data.length > sqlInsertChunkSize) {
    sqlInsertRaw(data.take(sqlInsertChunkSize));
    sqlInsertRaw(data.skip(sqlInsertChunkSize));
  } else {
    sql.execute(
      sqlQueryInsert(data.length),
      data.expand(rowEncodeRaw).toList(),
    );
  }
}