Module mysql.types

Structures for MySQL types not built-in to D/Phobos.

Functions

NameDescription
asVariant(v) Convert a MySQLVal into a Variant. This provides a backwards-compatible shim to use if necessary when transitioning to the safe API.
coerce(val) Compatibility layer for MySQLVal. These functions provide methods that TaggedAlgebraic does not provide in order to keep functionality that was available with Variant.
convertsTo(val) Compatibility layer for MySQLVal. These functions provide methods that TaggedAlgebraic does not provide in order to keep functionality that was available with Variant.
get(val) Compatibility layer for MySQLVal. These functions provide methods that TaggedAlgebraic does not provide in order to keep functionality that was available with Variant.
peek(val) Compatibility layer for MySQLVal. These functions provide methods that TaggedAlgebraic does not provide in order to keep functionality that was available with Variant.
type(val) Compatibility layer for MySQLVal. These functions provide methods that TaggedAlgebraic does not provide in order to keep functionality that was available with Variant.

Structs

NameDescription
TimeDiff A simple struct to represent time difference.
Timestamp A D struct to stand for a TIMESTAMP

Aliases

NameTypeDescription
MySQLVal taggedalgebraic.taggedalgebraic.TaggedAlgebraic!(mysql.types._MYTYPE) MySQLVal is mysql-native's tagged algebraic type that supports only @safe usage (see TaggedAlgebraic for more information on the features of this type). Note that TaggedAlgebraic has UFCS methods that are not available without importing that module in your code.