dpq2.conv.from_d_types

Members

Functions

softBitswap
N softBitswap(N x)

Reverses the order of bits - needed because of dmd Issue 19693 https://issues.dlang.org/show_bug.cgi?id=19693

toRecordValue
Value toRecordValue(Value[] elements)
Undocumented in source. Be warned that the author may not have intended to support it.
toValue
Value toValue(T v)

Converts Nullable!T to Value

toValue
Value toValue(T v)
toValue
Value toValue(T v)

Convert money.currency to PG value

toValue
Value toValue(T v)

Convert std.bitmanip.BitArray to PG value

toValue
Value toValue(T v, ValueFormat valueFormat)

Converts types implicitly convertible to string to PG Value. Note that if string is null it is written as an empty string. If NULL is a desired DB value, Nullable!string can be used instead.

toValue
Value toValue(T v)

Constructs Value from array of bytes

toValue
Value toValue(T v)

Constructs Value from boolean

toValue
Value toValue(T v)

Constructs Value from Date

toValue
Value toValue(T v)

Constructs Value from TimeOfDay

toValue
Value toValue(T v)

Constructs Value from TimeStamp or from TimeStampUTC

toValue
Value toValue(T v)

Constructs Value from DateTime It uses Timestamp without TZ as a resulting PG type

toValue
Value toValue(T v)

Constructs Value from UUID

toValue
Value toValue(T v)

Constructs Value from SysTime Note that SysTime has a precision in hnsecs and PG TimeStamp in usecs. It means that PG value will have 10 times lower precision. And as both types are using long for internal storage it also means that PG TimeStamp can store greater range of values than SysTime.

toValue
Value toValue(T v)

Constructs Value from Json

toValue (from dpq2.conv.arrays)
Value toValue(T v) via public import dpq2.conv.arrays : isArrayType, toValue, isStaticArrayString;

Converts dynamic or static array of supported types to the coresponding PG array type value

toValue (from dpq2.conv.geometric)
Value toValue(T c) via public import dpq2.conv.geometric : isGeometricType, toValue;
Undocumented in source.

Templates

isArrayType (from dpq2.conv.arrays)
template isArrayType(T) via public import dpq2.conv.arrays : isArrayType, toValue, isStaticArrayString;
Undocumented in source.
isGeometricType (from dpq2.conv.geometric)
template isGeometricType(T) via public import dpq2.conv.geometric : isGeometricType, toValue;
Undocumented in source.
isStaticArrayString (from dpq2.conv.arrays)
template isStaticArrayString(T) via public import dpq2.conv.arrays : isArrayType, toValue, isStaticArrayString;
Undocumented in source.

Meta