Movatterモバイル変換


[0]ホーム

URL:


postgresql-binary-0.3.0: Encoders and decoders for the PostgreSQL's binary format

Safe HaskellNone
LanguageHaskell2010

PostgreSQLBinary.Encoder

Contents

Synopsis

Documentation

typeE a = a ->ByteStringSource

A function for rendering a value into a byte string.

Numbers

int2 ::E (EitherInt16Word16)Source

int4 ::E (EitherInt32Word32)Source

int8 ::E (EitherInt64Word64)Source

float4 ::EFloatSource

float8 ::EDoubleSource

numeric ::EScientificSource

Text

char ::ECharSource

A UTF-8-encoded char.

Note that since it's UTF-8-encoded not a "char" but a "text" OID should be used with it.

text ::E (EitherTextText)Source

Either a strict or a lazy text.

bytea ::E (EitherByteStringByteString)Source

Either a strict or a lazy bytestring.

Date and Time

date ::EDaySource

time ::Bool ->ETimeOfDaySource

Encoding strategy depends on whether the server supportsinteger_datetimes.

timetz ::Bool ->E (TimeOfDay,TimeZone)Source

Encoding strategy depends on whether the server supportsinteger_datetimes.

timestamp ::Bool ->ELocalTimeSource

timestamptz ::Bool ->EUTCTimeSource

interval ::EDiffTimeSource

Misc

bool ::EBoolSource

uuid ::EUUIDSource

array ::EDataSource

Produced byHaddock version 2.15.0


[8]ページ先頭

©2009-2025 Movatter.jp