Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- values :: Default Valuesspec fields fields => [fields] -> Select fields
- valuesExplicit :: Valuesspec fields fields' -> [fields] -> Select fields'
- data Valuesspec columns columns'
- type ValuesspecSafe = Valuesspec
- valuesspecField :: IsSqlType a => Valuesspec (Column a) (Column a)
- valuesSafe :: Default Valuesspec fields fields => [fields] -> Select fields
- valuesSafeExplicit :: Valuesspec fields fields' -> [fields] -> Select fields'
- valuesUnsafe :: (Default ValuesspecUnsafe fields fields, Default Unpackspec fields fields) => [fields] -> Select fields
- valuesUnsafeExplicit :: Unpackspec fields fields' -> ValuesspecUnsafe fields fields' -> [fields] -> Select fields'
Documentation
values :: Default Valuesspec fields fields => [fields] -> Select fields Source #
values
implements Postgres's VALUES
construct and allows you
to create a SELECT
that consists of the given rows.
Example type specialization:
values :: [(Field a, Field b)] -> Select (Field a, Field b)
Assuming the makeAdaptorAndInstance
splice has been run for the
product type Foo
:
values :: [Foo (Field a) (Field b) (Field c)] -> S.Select (Foo (Field a) (Field b) (Field c))
Explicit versions
valuesExplicit :: Valuesspec fields fields' -> [fields] -> Select fields' Source #
Adaptors
data Valuesspec columns columns' Source #
Instances
type ValuesspecSafe = Valuesspec Source #
valuesspecField :: IsSqlType a => Valuesspec (Column a) (Column a) Source #
Deprecated versions
valuesSafe :: Default Valuesspec fields fields => [fields] -> Select fields Source #
Use values
instead. Will be deprecated in 0.8.
valuesSafeExplicit :: Valuesspec fields fields' -> [fields] -> Select fields' Source #
Use valuesExplicit
instead. Will be deprecated in 0.8.
valuesUnsafe :: (Default ValuesspecUnsafe fields fields, Default Unpackspec fields fields) => [fields] -> Select fields Source #
Do not use. Will be deprecated in 0.8.
valuesUnsafeExplicit :: Unpackspec fields fields' -> ValuesspecUnsafe fields fields' -> [fields] -> Select fields' Source #
Do not use. Will be deprecated in 0.8.