executeSelectRow method

Future<Map<String, dynamic>?> executeSelectRow(
  1. SelectStatement selectStatement
)
returns null if no data found

Implementation

Future<Map<String, dynamic>?> executeSelectRow(SelectStatement selectStatement) async {
  //startTransaction();

  var commandText = selectStatement.toSql();

  var result = await this.rawQuery(commandText, selectStatement._parameters.map((p) => p.value).toList());

  if (result.isEmpty) return null;

  return result[0];
}