run method

Future<PgResult> run([
  1. Object? parameters
])

Implementation

Future<PgResult> run([
  Object? /* List<Object?|PgTypedParameter> | Map<String, Object?|PgTypedParameter> */
      parameters,
]) async {
  final items = <PgResultRow>[];
  final subscription = bind(parameters).listen(items.add);
  await subscription.asFuture();
  await subscription.cancel();

  return PgResult(
      items, await subscription.affectedRows, await subscription.schema);
}