columnsFromList static method
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(", ");