+/* Appends the string form of the value in 'row' of each of the columns in
+ * 'columns' to 'out', e.g. "1, \"xyz\", and [1, 2, 3]". */
+void
+ovsdb_row_columns_to_string(const struct ovsdb_row *row,
+ const struct ovsdb_column_set *columns,
+ struct ds *out)
+{
+ size_t i;
+
+ for (i = 0; i < columns->n_columns; i++) {
+ const struct ovsdb_column *column = columns->columns[i];
+
+ ds_put_cstr(out, english_list_delimiter(i, columns->n_columns));
+ ovsdb_datum_to_string(&row->fields[column->index], &column->type, out);
+ }
+}
+