toPrimaryKeyStr method

String toPrimaryKeyStr()

Implementation

String toPrimaryKeyStr() {
  String result = "";
  getPrimaryKeyFields().forEach((item) {
    if (result.length > 0) {
      result = "$result, ";
    }
    String fName = item.name;
    result = "$result$fName";
  });
  if (result.length > 0) {
    return ", PRIMARY KEY ($result)";
  }
  return '';
}