beam-core-0.9.2.1: Type-safe, feature-complete SQL query and manipulation interface for Haskell
Safe Haskell None
Language Haskell2010

Database.Beam.Backend.SQL.Row

Synopsis

Documentation

newtype FromBackendRowM be a Source #

Instances

Instances details
Monad ( FromBackendRowM be) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Functor ( FromBackendRowM be) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

MonadFail ( FromBackendRowM be) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Applicative ( FromBackendRowM be) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Alternative ( FromBackendRowM be) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

data BeamRowReadError Source #

An error that may occur when parsing a row. Contains an optional annotation of which column was being parsed (if available).

class BeamBackend be => FromBackendRow be a where Source #

Minimal complete definition

Nothing

Methods

fromBackendRow :: FromBackendRowM be a Source #

Parses a beam row. This should not fail, except in the case of an internal bug in beam deserialization code. If it does fail, this should throw a BeamRowParseError .

valuesNeeded :: Proxy be -> Proxy a -> Int Source #

Instances

Instances details
BeamBackend be => FromBackendRow be () Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

FromBackendRow be x => FromBackendRow be ( SqlSerial x) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( FromBackendRow be x, FromBackendRow be SqlNull ) => FromBackendRow be ( Maybe x) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, Generic (tbl ( Nullable Identity )), Generic (tbl ( Nullable Exposed )), GFromBackendRow be ( Rep (tbl ( Nullable Exposed ))) ( Rep (tbl ( Nullable Identity )))) => FromBackendRow be (tbl ( Nullable Identity )) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, Generic (tbl Identity ), Generic (tbl Exposed ), GFromBackendRow be ( Rep (tbl Exposed )) ( Rep (tbl Identity ))) => FromBackendRow be (tbl Identity ) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b) => FromBackendRow be (a, b) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, KnownNat n, FromBackendRow be a) => FromBackendRow be ( Vector n a) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be t) => FromBackendRow be ( Tagged tag t) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c) => FromBackendRow be (a, b, c) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d) => FromBackendRow be (a, b, c, d) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e) => FromBackendRow be (a, b, c, d, e) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f) => FromBackendRow be (a, b, c, d, e, f) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f, FromBackendRow be g) => FromBackendRow be (a, b, c, d, e, f, g) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e, f, g) Source #

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e, f, g) -> Int Source #

( BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f, FromBackendRow be g, FromBackendRow be h) => FromBackendRow be (a, b, c, d, e, f, g, h) Source #
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e, f, g, h) Source #

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e, f, g, h) -> Int Source #

Orphan instances

Generic (a, b, c, d, e, f, g, h) Source #
Instance details

Associated Types

type Rep (a, b, c, d, e, f, g, h) :: Type -> Type Source #

Methods

from :: (a, b, c, d, e, f, g, h) -> Rep (a, b, c, d, e, f, g, h) x Source #

to :: Rep (a, b, c, d, e, f, g, h) x -> (a, b, c, d, e, f, g, h) Source #