preql-0.6: safe PostgreSQL queries using Quasiquoters
Safe HaskellNone
LanguageHaskell2010

Preql.Wire

Description

This module re-exports definitions from Wire.* that are expected to be useful

Synopsis

Decoding rows

class FromSql a where Source #

A type which can be decoded from a SQL row. Note that this includes the canonical order of fields.

The default (empty) instance works for any type with a FromSqlField instance. This is convenient when you define your own Postgres types, since they should be instances of both type classes.

Minimal complete definition

Nothing

Associated Types

type Width a :: Nat Source #

The number of columns read in decoding this type.

type Width a = 1

Methods

fromSql :: RowDecoder (Width a) a Source #

default fromSql :: (FromSqlField a, Width a ~ 1) => RowDecoder (Width a) a Source #

Instances

Instances details
FromSql Bool Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Bool :: Nat Source #

FromSql Char Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Char :: Nat Source #

FromSql Double Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Double :: Nat Source #

FromSql Float Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Float :: Nat Source #

FromSql Int16 Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Int16 :: Nat Source #

FromSql Int32 Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Int32 :: Nat Source #

FromSql Int64 Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Int64 :: Nat Source #

FromSql ByteString Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width ByteString :: Nat Source #

FromSql ByteString Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width ByteString :: Nat Source #

FromSql String Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width String :: Nat Source #

FromSql Text Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Text :: Nat Source #

FromSql UTCTime Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width UTCTime :: Nat Source #

FromSql Value Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Value :: Nat Source #

FromSql Text Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Text :: Nat Source #

FromSql UUID Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width UUID :: Nat Source #

FromSql Day Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Day :: Nat Source #

FromSql TimeOfDay Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width TimeOfDay :: Nat Source #

FromSql Oid Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Oid :: Nat Source #

FromSql PgName Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width PgName :: Nat Source #

FromSql TimeTZ Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width TimeTZ :: Nat Source #

FromSqlField [a] => FromSql [a] Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width [a] :: Nat Source #

Methods

fromSql :: RowDecoder (Width [a]) [a] Source #

FromSqlField a => FromSql (Maybe a) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Maybe a) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Maybe a)) (Maybe a) Source #

FromSqlField (Vector a) => FromSql (Vector a) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Vector a) :: Nat Source #

(FromSqlField a, FromSqlField b) => FromSql (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b))) (Tuple (a, b)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSql (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c))) (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSql (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d))) (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSql (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e))) (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSql (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f))) (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSql (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g))) (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSql (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h))) (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSql (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i))) (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j))) (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k))) (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

(FromSql a, FromSql b) => FromSql (a, b) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b)) (a, b) Source #

(FromSql a, FromSql b, FromSql c) => FromSql (a, b, c) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c)) (a, b, c) Source #

(FromSql a, FromSql b, FromSql c, FromSql d) => FromSql (a, b, c, d) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d)) (a, b, c, d) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e) => FromSql (a, b, c, d, e) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e)) (a, b, c, d, e) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f) => FromSql (a, b, c, d, e, f) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f)) (a, b, c, d, e, f) Source #

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

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g)) (a, b, c, d, e, f, g) Source #

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

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h)) (a, b, c, d, e, f, g, h) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i) => FromSql (a, b, c, d, e, f, g, h, i) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i)) (a, b, c, d, e, f, g, h, i) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j) => FromSql (a, b, c, d, e, f, g, h, i, j) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j)) (a, b, c, d, e, f, g, h, i, j) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k) => FromSql (a, b, c, d, e, f, g, h, i, j, k) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k)) (a, b, c, d, e, f, g, h, i, j, k) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l)) (a, b, c, d, e, f, g, h, i, j, k, l) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m)) (a, b, c, d, e, f, g, h, i, j, k, l, m) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v, FromSql w) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v, FromSql w, FromSql x) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v, FromSql w, FromSql x, FromSql y) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source #

class FromSqlField a Source #

A type which can be decoded from a single SQL field. This is mostly useful for defining what can be an element of an array or Tuple.

Minimal complete definition

fromSqlField

Instances

Instances details
FromSqlField Bool Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Char Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Double Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Float Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Int16 Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Int32 Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Int64 Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField ByteString Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use encode and jsonb_bytes directly, rather than this instance.

Instance details

Defined in Preql.FromSql.Instances

FromSqlField ByteString Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField String Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Text Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField UTCTime Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Value Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use fromSqlJsonField rather than this instance.

Instance details

Defined in Preql.FromSql.Instances

FromSqlField Text Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField UUID Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Day Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField TimeOfDay Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Oid Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField PgName Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField TimeTZ Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField [[[[[a]]]]] Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder [[[[[a]]]]] Source #

FromSqlField a => FromSqlField [[[[a]]]] Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder [[[[a]]]] Source #

FromSqlField a => FromSqlField [[[a]]] Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder [[[a]]] Source #

FromSqlField a => FromSqlField [[a]] Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField [a] Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector a) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector a)) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector (Vector a))) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector (Vector (Vector a)))) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector (Vector (Vector (Vector a))))) Source # 
Instance details

Defined in Preql.FromSql.Instances

(FromSqlField a, FromSqlField b) => FromSqlField (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSqlField (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSqlField (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSqlField (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSqlField (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSqlField (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSqlField (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

Encoding parameters

class ToSql a where Source #

ToSql a is sufficient to pass a as parameters to a paramaterized query.

Methods

toSql :: RowEncoder a Source #

Instances

Instances details
ToSql Bool Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Char Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Double Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Float Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Int16 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Int32 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Int64 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql () Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder () Source #

ToSql ByteString Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql ByteString Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql String Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql UTCTime Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Value Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql UUID Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Day Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql TimeOfDay Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql TimeTZ Source # 
Instance details

Defined in Preql.Wire.ToSql

(ToSqlField a, ToSqlField b) => ToSql (a, b) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b) Source #

(ToSqlField a, ToSqlField b, ToSqlField c) => ToSql (a, b, c) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d) => ToSql (a, b, c, d) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e) => ToSql (a, b, c, d, e) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f) => ToSql (a, b, c, d, e, f) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g) => ToSql (a, b, c, d, e, f, g) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h) => ToSql (a, b, c, d, e, f, g, h) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i) => ToSql (a, b, c, d, e, f, g, h, i) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j) => ToSql (a, b, c, d, e, f, g, h, i, j) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k) => ToSql (a, b, c, d, e, f, g, h, i, j, k) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v, ToSqlField w) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v, ToSqlField w, ToSqlField x) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v, ToSqlField w, ToSqlField x, ToSqlField y) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source #

class ToSqlField a Source #

Types which can be encoded to a single Postgres field.

Minimal complete definition

toSqlField

Instances

Instances details
ToSqlField Bool Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Char Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Double Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Float Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Int16 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Int32 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Int64 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField ByteString Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use encode and jsonb_bytes directly, rather than this instance.

Instance details

Defined in Preql.Wire.ToSql

ToSqlField ByteString Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField String Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField UTCTime Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Value Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use toSqlJsonField rather than this instance.

Instance details

Defined in Preql.Wire.ToSql

ToSqlField Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField UUID Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Day Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField TimeOfDay Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField TimeTZ Source # 
Instance details

Defined in Preql.Wire.ToSql

Errors

data FieldError Source #

A decoding error with information about the row & column of the result where it occured.

newtype Tuple r Source #

Wrapper for Postgres anonymous row types (sometimes called record types), so instance resolution picks the right decoder. The useful instances are for (Haskell) tuples. Postgres allows row types with a single field, but the instances would overlap with those for nested row types, so we do not provide them.

Constructors

Tuple r 

Instances

Instances details
Eq r => Eq (Tuple r) Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

(==) :: Tuple r -> Tuple r -> Bool #

(/=) :: Tuple r -> Tuple r -> Bool #

Ord r => Ord (Tuple r) Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

compare :: Tuple r -> Tuple r -> Ordering #

(<) :: Tuple r -> Tuple r -> Bool #

(<=) :: Tuple r -> Tuple r -> Bool #

(>) :: Tuple r -> Tuple r -> Bool #

(>=) :: Tuple r -> Tuple r -> Bool #

max :: Tuple r -> Tuple r -> Tuple r #

min :: Tuple r -> Tuple r -> Tuple r #

Show r => Show (Tuple r) Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

showsPrec :: Int -> Tuple r -> ShowS #

show :: Tuple r -> String #

showList :: [Tuple r] -> ShowS #

(FromSqlField a, FromSqlField b) => FromSql (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b))) (Tuple (a, b)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSql (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c))) (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSql (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d))) (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSql (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e))) (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSql (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f))) (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSql (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g))) (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSql (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h))) (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSql (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i))) (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j))) (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k))) (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

(FromSqlField a, FromSqlField b) => FromSqlField (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSqlField (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSqlField (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSqlField (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSqlField (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSqlField (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSqlField (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

type Width (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b)) = 1
type Width (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c)) = 1
type Width (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d)) = 1
type Width (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e)) = 1
type Width (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f)) = 1
type Width (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) = 1

data FieldError Source #

A decoding error with information about the row & column of the result where it occured.

data PgType Source #

Constructors

Oid Oid Oid

A Postgres type with a known ID, and the matching array ID

TypeName Text

A Postgres type which we will need to lookup by name

Instances

Instances details
Eq PgType Source # 
Instance details

Defined in Preql.Wire.Errors

Methods

(==) :: PgType -> PgType -> Bool #

(/=) :: PgType -> PgType -> Bool #

Show PgType Source # 
Instance details

Defined in Preql.Wire.Errors

ToJSON PgType Source # 
Instance details

Defined in Preql.Wire.Errors

FromJSON PgType Source # 
Instance details

Defined in Preql.Wire.Errors

data RowDecoder (n :: Nat) a Source #

RowDecoder is Functor but not Monad so that we can index the type by the number of columns that it consumes. We also know & verify all of the OIDs before we read any of the field data sent by Postgres, which would admit an Applicative instance but not Monad

Instances

Instances details
Functor (RowDecoder n) Source # 
Instance details

Defined in Preql.Wire.Internal

Methods

fmap :: (a -> b) -> RowDecoder n a -> RowDecoder n b #

(<$) :: a -> RowDecoder n b -> RowDecoder n a #

data Query (n :: Nat) Source #

The IsString instance does no validation; the limited instances discourage directly manipulating strings, with the high risk of SQL injection. A Query is tagged with a Nat representing the width of its return type.

Instances

Instances details
Show (Query n) Source # 
Instance details

Defined in Preql.Wire.Internal

Methods

showsPrec :: Int -> Query n -> ShowS #

show :: Query n -> String #

showList :: [Query n] -> ShowS #

IsString (Query n) Source # 
Instance details

Defined in Preql.Wire.Internal

Methods

fromString :: String -> Query n #

class FromSql a where Source #

A type which can be decoded from a SQL row. Note that this includes the canonical order of fields.

The default (empty) instance works for any type with a FromSqlField instance. This is convenient when you define your own Postgres types, since they should be instances of both type classes.

Minimal complete definition

Nothing

Associated Types

type Width a :: Nat Source #

The number of columns read in decoding this type.

type Width a = 1

Methods

fromSql :: RowDecoder (Width a) a Source #

default fromSql :: (FromSqlField a, Width a ~ 1) => RowDecoder (Width a) a Source #

Instances

Instances details
FromSql Bool Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Bool :: Nat Source #

FromSql Char Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Char :: Nat Source #

FromSql Double Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Double :: Nat Source #

FromSql Float Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Float :: Nat Source #

FromSql Int16 Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Int16 :: Nat Source #

FromSql Int32 Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Int32 :: Nat Source #

FromSql Int64 Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Int64 :: Nat Source #

FromSql ByteString Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width ByteString :: Nat Source #

FromSql ByteString Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width ByteString :: Nat Source #

FromSql String Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width String :: Nat Source #

FromSql Text Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Text :: Nat Source #

FromSql UTCTime Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width UTCTime :: Nat Source #

FromSql Value Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Value :: Nat Source #

FromSql Text Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Text :: Nat Source #

FromSql UUID Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width UUID :: Nat Source #

FromSql Day Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Day :: Nat Source #

FromSql TimeOfDay Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width TimeOfDay :: Nat Source #

FromSql Oid Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width Oid :: Nat Source #

FromSql PgName Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width PgName :: Nat Source #

FromSql TimeTZ Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width TimeTZ :: Nat Source #

FromSqlField [a] => FromSql [a] Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width [a] :: Nat Source #

Methods

fromSql :: RowDecoder (Width [a]) [a] Source #

FromSqlField a => FromSql (Maybe a) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Maybe a) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Maybe a)) (Maybe a) Source #

FromSqlField (Vector a) => FromSql (Vector a) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Vector a) :: Nat Source #

(FromSqlField a, FromSqlField b) => FromSql (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b))) (Tuple (a, b)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSql (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c))) (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSql (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d))) (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSql (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e))) (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSql (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f))) (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSql (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g))) (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSql (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h))) (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSql (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i))) (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j))) (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k))) (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

(FromSql a, FromSql b) => FromSql (a, b) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b)) (a, b) Source #

(FromSql a, FromSql b, FromSql c) => FromSql (a, b, c) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c)) (a, b, c) Source #

(FromSql a, FromSql b, FromSql c, FromSql d) => FromSql (a, b, c, d) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d)) (a, b, c, d) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e) => FromSql (a, b, c, d, e) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e)) (a, b, c, d, e) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f) => FromSql (a, b, c, d, e, f) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f)) (a, b, c, d, e, f) Source #

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

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g)) (a, b, c, d, e, f, g) Source #

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

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h)) (a, b, c, d, e, f, g, h) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i) => FromSql (a, b, c, d, e, f, g, h, i) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i)) (a, b, c, d, e, f, g, h, i) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j) => FromSql (a, b, c, d, e, f, g, h, i, j) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j)) (a, b, c, d, e, f, g, h, i, j) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k) => FromSql (a, b, c, d, e, f, g, h, i, j, k) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k)) (a, b, c, d, e, f, g, h, i, j, k) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l)) (a, b, c, d, e, f, g, h, i, j, k, l) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m)) (a, b, c, d, e, f, g, h, i, j, k, l, m) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v, FromSql w) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v, FromSql w, FromSql x) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source #

(FromSql a, FromSql b, FromSql c, FromSql d, FromSql e, FromSql f, FromSql g, FromSql h, FromSql i, FromSql j, FromSql k, FromSql l, FromSql m, FromSql n, FromSql o, FromSql p, FromSql q, FromSql r, FromSql s, FromSql t, FromSql u, FromSql v, FromSql w, FromSql x, FromSql y) => FromSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source #

class FromSqlField a where Source #

A type which can be decoded from a single SQL field. This is mostly useful for defining what can be an element of an array or Tuple.

Instances

Instances details
FromSqlField Bool Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Char Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Double Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Float Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Int16 Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Int32 Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Int64 Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField ByteString Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use encode and jsonb_bytes directly, rather than this instance.

Instance details

Defined in Preql.FromSql.Instances

FromSqlField ByteString Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField String Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Text Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField UTCTime Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Value Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use fromSqlJsonField rather than this instance.

Instance details

Defined in Preql.FromSql.Instances

FromSqlField Text Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField UUID Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Day Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField TimeOfDay Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField Oid Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField PgName Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField TimeTZ Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField [[[[[a]]]]] Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder [[[[[a]]]]] Source #

FromSqlField a => FromSqlField [[[[a]]]] Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder [[[[a]]]] Source #

FromSqlField a => FromSqlField [[[a]]] Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder [[[a]]] Source #

FromSqlField a => FromSqlField [[a]] Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField [a] Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector a) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector a)) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector (Vector a))) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector (Vector (Vector a)))) Source # 
Instance details

Defined in Preql.FromSql.Instances

FromSqlField a => FromSqlField (Vector (Vector (Vector (Vector (Vector a))))) Source # 
Instance details

Defined in Preql.FromSql.Instances

(FromSqlField a, FromSqlField b) => FromSqlField (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSqlField (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSqlField (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSqlField (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSqlField (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSqlField (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSqlField (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

data FieldDecoder a Source #

A FieldDecoder for a type a consists of an OID indicating the Postgres type which can be decoded, and a parser from the binary representation of that type to the Haskell representation.

Constructors

FieldDecoder PgType (BinaryParser a) 

Instances

Instances details
Functor FieldDecoder Source # 
Instance details

Defined in Preql.FromSql.Class

Methods

fmap :: (a -> b) -> FieldDecoder a -> FieldDecoder b #

(<$) :: a -> FieldDecoder b -> FieldDecoder a #

notNull :: FieldDecoder a -> RowDecoder 1 a Source #

Construct a decoder for a single non-nullable column.

nullable :: FieldDecoder a -> RowDecoder 1 (Maybe a) Source #

Construct a decoder for a single nullable column.

newtype Composite a Source #

Helper for decoding composites

Constructors

Composite (BinaryParser a) 

Instances

Instances details
Functor Composite Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

fmap :: (a -> b) -> Composite a -> Composite b #

(<$) :: a -> Composite b -> Composite a #

Applicative Composite Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

pure :: a -> Composite a #

(<*>) :: Composite (a -> b) -> Composite a -> Composite b #

liftA2 :: (a -> b -> c) -> Composite a -> Composite b -> Composite c #

(*>) :: Composite a -> Composite b -> Composite b #

(<*) :: Composite a -> Composite b -> Composite a #

newtype Tuple r Source #

Wrapper for Postgres anonymous row types (sometimes called record types), so instance resolution picks the right decoder. The useful instances are for (Haskell) tuples. Postgres allows row types with a single field, but the instances would overlap with those for nested row types, so we do not provide them.

Constructors

Tuple r 

Instances

Instances details
Eq r => Eq (Tuple r) Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

(==) :: Tuple r -> Tuple r -> Bool #

(/=) :: Tuple r -> Tuple r -> Bool #

Ord r => Ord (Tuple r) Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

compare :: Tuple r -> Tuple r -> Ordering #

(<) :: Tuple r -> Tuple r -> Bool #

(<=) :: Tuple r -> Tuple r -> Bool #

(>) :: Tuple r -> Tuple r -> Bool #

(>=) :: Tuple r -> Tuple r -> Bool #

max :: Tuple r -> Tuple r -> Tuple r #

min :: Tuple r -> Tuple r -> Tuple r #

Show r => Show (Tuple r) Source # 
Instance details

Defined in Preql.FromSql.Tuple

Methods

showsPrec :: Int -> Tuple r -> ShowS #

show :: Tuple r -> String #

showList :: [Tuple r] -> ShowS #

(FromSqlField a, FromSqlField b) => FromSql (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b))) (Tuple (a, b)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSql (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c))) (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSql (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d))) (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSql (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e))) (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSql (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f))) (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSql (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g))) (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSql (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h))) (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSql (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i))) (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j))) (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k))) (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSql (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) :: Nat Source #

Methods

fromSql :: RowDecoder (Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y))) (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

(FromSqlField a, FromSqlField b) => FromSqlField (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

(FromSqlField a, FromSqlField b, FromSqlField c) => FromSqlField (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d) => FromSqlField (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e) => FromSqlField (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f) => FromSqlField (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g) => FromSqlField (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h) => FromSqlField (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source #

(FromSqlField a, FromSqlField b, FromSqlField c, FromSqlField d, FromSqlField e, FromSqlField f, FromSqlField g, FromSqlField h, FromSqlField i, FromSqlField j, FromSqlField k, FromSqlField l, FromSqlField m, FromSqlField n, FromSqlField o, FromSqlField p, FromSqlField q, FromSqlField r, FromSqlField s, FromSqlField t, FromSqlField u, FromSqlField v, FromSqlField w, FromSqlField x, FromSqlField y) => FromSqlField (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

Methods

fromSqlField :: FieldDecoder (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source #

type Width (Tuple (a, b)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b)) = 1
type Width (Tuple (a, b, c)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c)) = 1
type Width (Tuple (a, b, c, d)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d)) = 1
type Width (Tuple (a, b, c, d, e)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e)) = 1
type Width (Tuple (a, b, c, d, e, f)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f)) = 1
type Width (Tuple (a, b, c, d, e, f, g)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x)) = 1
type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width (Tuple (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y)) = 1

newtype PgName Source #

Constructors

PgName Text 

Instances

Instances details
Show PgName Source # 
Instance details

Defined in Preql.Wire.Types

FromSql PgName Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width PgName :: Nat Source #

FromSqlField PgName Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width PgName Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width PgName = 1

data TimeTZ Source #

Constructors

TimeTZ !TimeOfDay !TimeZone 

Instances

Instances details
Eq TimeTZ Source # 
Instance details

Defined in Preql.Wire.Types

Methods

(==) :: TimeTZ -> TimeTZ -> Bool #

(/=) :: TimeTZ -> TimeTZ -> Bool #

Show TimeTZ Source # 
Instance details

Defined in Preql.Wire.Types

FromSql TimeTZ Source # 
Instance details

Defined in Preql.FromSql.Instances

Associated Types

type Width TimeTZ :: Nat Source #

FromSqlField TimeTZ Source # 
Instance details

Defined in Preql.FromSql.Instances

ToSql TimeTZ Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField TimeTZ Source # 
Instance details

Defined in Preql.Wire.ToSql

type Width TimeTZ Source # 
Instance details

Defined in Preql.FromSql.Instances

type Width TimeTZ = 1

class ToSql a where Source #

ToSql a is sufficient to pass a as parameters to a paramaterized query.

Methods

toSql :: RowEncoder a Source #

Instances

Instances details
ToSql Bool Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Char Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Double Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Float Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Int16 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Int32 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Int64 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql () Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder () Source #

ToSql ByteString Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql ByteString Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql String Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql UTCTime Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Value Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql UUID Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql Day Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql TimeOfDay Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSql TimeTZ Source # 
Instance details

Defined in Preql.Wire.ToSql

(ToSqlField a, ToSqlField b) => ToSql (a, b) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b) Source #

(ToSqlField a, ToSqlField b, ToSqlField c) => ToSql (a, b, c) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d) => ToSql (a, b, c, d) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e) => ToSql (a, b, c, d, e) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f) => ToSql (a, b, c, d, e, f) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g) => ToSql (a, b, c, d, e, f, g) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h) => ToSql (a, b, c, d, e, f, g, h) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i) => ToSql (a, b, c, d, e, f, g, h, i) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j) => ToSql (a, b, c, d, e, f, g, h, i, j) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k) => ToSql (a, b, c, d, e, f, g, h, i, j, k) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v, ToSqlField w) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v, ToSqlField w, ToSqlField x) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source #

(ToSqlField a, ToSqlField b, ToSqlField c, ToSqlField d, ToSqlField e, ToSqlField f, ToSqlField g, ToSqlField h, ToSqlField i, ToSqlField j, ToSqlField k, ToSqlField l, ToSqlField m, ToSqlField n, ToSqlField o, ToSqlField p, ToSqlField q, ToSqlField r, ToSqlField s, ToSqlField t, ToSqlField u, ToSqlField v, ToSqlField w, ToSqlField x, ToSqlField y) => ToSql (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

toSql :: RowEncoder (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source #

class ToSqlField a where Source #

Types which can be encoded to a single Postgres field.

Instances

Instances details
ToSqlField Bool Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Char Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Double Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Float Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Int16 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Int32 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Int64 Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField ByteString Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use encode and jsonb_bytes directly, rather than this instance.

Instance details

Defined in Preql.Wire.ToSql

ToSqlField ByteString Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField String Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField UTCTime Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Value Source #

If you want to encode some more specific Haskell type via JSON, it is more efficient to use toSqlJsonField rather than this instance.

Instance details

Defined in Preql.Wire.ToSql

ToSqlField Text Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField UUID Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField Day Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField TimeOfDay Source # 
Instance details

Defined in Preql.Wire.ToSql

ToSqlField TimeTZ Source # 
Instance details

Defined in Preql.Wire.ToSql

type RowEncoder a = a -> [(Oid, ByteString)] Source #

data FieldEncoder a Source #

A FieldEncoder for a type a consists of a function from a to it's binary representation, and an Postgres OID which tells Postgres it's type & how to decode it.

Constructors

FieldEncoder Oid (a -> Builder) 

Instances

Instances details
Contravariant FieldEncoder Source # 
Instance details

Defined in Preql.Wire.ToSql

Methods

contramap :: (a -> b) -> FieldEncoder b -> FieldEncoder a #

(>$) :: b -> FieldEncoder b -> FieldEncoder a #

data IsolationLevel Source #

Instances

Instances details
Bounded IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Enum IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Eq IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Ord IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Read IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

Show IsolationLevel Source # 
Instance details

Defined in Preql.Wire.Query

data Connection Source #

We make the type cache part of the Connection to offer the option of per-Connection (or striped) caches. It's also reasonable to share a single cache for an entire multi-threaded program; the IORef supports this usage.

Instances

Instances details
SQL (ReaderT Connection IO) Source #

Most larger applications will define an instance; this one is suitable to test out the library. A safer version would use MVar Connection to ensure only one thread using it.

Instance details

Defined in Preql.Effect