Module dpq2.conv.from_d_types
Functions
Name | Description |
toValue(v)
|
Converts Nullable!T to Value
|
toValue(v)
|
|
toValue(v)
|
Convert money.currency to PG value
|
toValue(v)
|
Convert std.bitmanip.BitArray to PG value
|
toValue(v, 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(v)
|
Constructs Value from array of bytes
|
toValue(v)
|
Constructs Value from boolean
|
toValue(v)
|
Constructs Value from Date
|
toValue(v)
|
Constructs Value from TimeOfDay
|
toValue(v)
|
Constructs Value from Interval
|
toValue(v)
|
Constructs Value from TimeStamp or from TimeStampUTC
|
toValue(v)
|
Constructs Value from DateTime
It uses Timestamp without TZ as a resulting PG type
|
toValue(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(v)
|
Constructs Value from UUID
|
toValue(v)
|
Constructs Value from Json
|