dpq2.conv.from_d_types

Public Imports

dpq2.conv.arrays
public import dpq2.conv.arrays : isArrayType, toValue, isStaticArrayString;
dpq2.conv.geometric
public import dpq2.conv.geometric : isGeometricType, toValue;

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

Meta