Function asVariant
Convert a MySQLVal into a Variant. This provides a backwards-compatible shim to use if necessary when transitioning to the safe API.
std .variant .VariantN!(32L) asVariant
(
taggedalgebraic .taggedalgebraic .TaggedAlgebraic!(mysql.types._MYTYPE) v
);
std .typecons .Nullable!(std.variant.VariantN!(32L).VariantN) asVariant
(
std .typecons .Nullable!(taggedalgebraic.taggedalgebraic.TaggedAlgebraic!(mysql.types._MYTYPE).TaggedAlgebraic) v
);
See the Safe Migration document for more details.