apply method

(String, Map<String, Object?>) apply(
  1. P? p
)

Returns the SQL string and the mapped parameters for this command.

Implementation

(String, Map<String, Object?>) apply(P? p) {
  if (_sql == null) {
    throw StateError('Command does not have a static SQL string.');
  }
  final map = _resolveParams<P>(params, p);
  return (_sql!, map);
}