columnsFromList static method

String columnsFromList({
  1. required List<String> items,
  2. dynamic quoteChar,
  3. String dataBaseProvider = "",
})

Returns a comma-separated string of wrapped column names from the given list.

The quoteChar parameter specifies the quote character to use for wrapping column names. The dataBaseProvider parameter is used to determine the appropriate quote character if quoteChar is not provided.

Implementation

static String columnsFromList({required List<String> items, dynamic quoteChar, String dataBaseProvider = ""}) =>
    items.map((x) => x.split(".").map((e) => SqlUtil.wrap(e, quoteChar, dataBaseProvider)).join(".")).join(", ");