statementByPk method

String statementByPk()

Implementation

String statementByPk() {
  final pks = tableInfo.fields.where((element) => element.primary).toList();
  if (pks.isEmpty) {
    throw NotSupportedException();
  }
  return 'SELECT * FROM "${tableInfo.tableName}" WHERE "${pks.first.fieldName}"=@${pks.first.fieldName};';
}