mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-26 01:33:08 +03:00
64 lines
956 B
Haskell
64 lines
956 B
Haskell
-- |
|
|
-- A DSL for declaration of statement parameter encoders.
|
|
--
|
|
-- For compactness of names all the types defined here imply being an encoder.
|
|
-- E.g., the `Array` type is an __encoder__ of arrays, not the data-structure itself.
|
|
module Hasql.Encoders
|
|
( -- * Parameters product
|
|
Params,
|
|
noParams,
|
|
param,
|
|
|
|
-- * Nullability
|
|
NullableOrNot,
|
|
nonNullable,
|
|
nullable,
|
|
|
|
-- * Value
|
|
Value,
|
|
bool,
|
|
int2,
|
|
int4,
|
|
int8,
|
|
float4,
|
|
float8,
|
|
numeric,
|
|
char,
|
|
text,
|
|
bytea,
|
|
date,
|
|
timestamp,
|
|
timestamptz,
|
|
time,
|
|
timetz,
|
|
interval,
|
|
uuid,
|
|
inet,
|
|
json,
|
|
jsonBytes,
|
|
jsonLazyBytes,
|
|
jsonb,
|
|
jsonbBytes,
|
|
jsonbLazyBytes,
|
|
name,
|
|
oid,
|
|
enum,
|
|
unknownEnum,
|
|
unknown,
|
|
array,
|
|
foldableArray,
|
|
composite,
|
|
|
|
-- * Array
|
|
Array,
|
|
element,
|
|
dimension,
|
|
|
|
-- * Composite
|
|
Composite,
|
|
field,
|
|
)
|
|
where
|
|
|
|
import Hasql.Encoders.All
|