mysql.types

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

Members

Aliases

MySQLVal
alias MySQLVal = TaggedAlgebraic!_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.

Functions

_toVal
MySQLVal _toVal(Variant v)
Undocumented in source. Be warned that the author may not have intended to support it.
asVariant
Variant asVariant(MySQLVal v)
Nullable!Variant asVariant(Nullable!MySQLVal v)

Convert a MySQLVal into a Variant. This provides a backwards-compatible shim to use if necessary when transitioning to the safe API.

coerce
T coerce(MySQLVal 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
bool convertsTo(MySQLVal val)
get
T get(MySQLVal val)
peek
T* peek(MySQLVal val)
type
TypeInfo type(MySQLVal 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

TimeDiff
struct TimeDiff

A simple struct to represent time difference.

Timestamp
struct Timestamp

A D struct to stand for a TIMESTAMP

Meta