renderSqliteTableList function

String renderSqliteTableList(
  1. List<SqliteTableSummary> tables
)

Renders the table list (omp's renderTableList).

Implementation

String renderSqliteTableList(List<SqliteTableSummary> tables) {
  if (tables.isEmpty) return '(no tables)';
  return tables
      .map(
        (table) => truncateSqliteWidth(
          _replaceTabs(
            '${table.name} '
            '(${table.exact ? '${table.rows}' : '${table.rows}+'} rows)',
          ),
          maxSqliteRenderWidth,
        ),
      )
      .join('\n');
}