selectQuery2Cols<TType1, TType2> method

Future<SqlResponse<List<Tuple2<TType1, TType2>>>> selectQuery2Cols<TType1, TType2>(
  1. Column<TType1, TModel> col1(
    1. TDef e
    ),
  2. Column<TType2, TModel> col2(
    1. TDef e
    ), {
  3. Where where(
    1. TDef e
    )?,
  4. OrderBy<ITableDefinition> orderBy(
    1. TDef e
    )?,
  5. PostgreSQLExecutionContext? cn = null,
})

Implementation

Future<SqlResponse<List<Tuple2<TType1, TType2>>>> selectQuery2Cols<TType1, TType2>(
  Column<TType1, TModel> Function(TDef e) col1,
  Column<TType2, TModel> Function(TDef e) col2, {
  Where Function(TDef e)? where,
  OrderBy Function(TDef e)? orderBy,
  PostgreSQLExecutionContext? cn = null,
}) async {
  var result = _selectQuery((x, conn) => runQueryToReturnType(x, getRowCustom2<TType1, TType2>, conn), where, orderBy, cn, col1, col2);
  return result;
}