Function UnsafePrepared.setArg

Redefine all functions that deal with MySQLVal to deal with Variant instead. Please see SafePrepared for details on how the methods work.

void setArg(T) (
  size_t index,
  T val,
  UnsafeParameterSpecialization psn = UPSN.init
) @system
if (!is(T == Variant));

void setArg (
  ulong index,
  std.variant.VariantN!(32L) val,
  ParameterSpecializationImpl!(false) psn = ParameterSpecializationImpl(0LU, SQLType.INFER_FROM_D_TYPE, 0u, null)
);

See the Safe Migration document for more details.