odbc-0.2.2: Haskell binding to the ODBC API, aimed at SQL Server driver

Safe HaskellNone
LanguageHaskell2010

Database.ODBC.Conversion

Description

Conversion conveniences.

Synopsis

Documentation

class FromValue a where Source #

Convert from a Value to a regular Haskell value.

Minimal complete definition

fromValue

Methods

fromValue :: Value -> Either String a Source #

The String is used for a helpful error message.

Instances
FromValue Bool Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Double Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Float Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Int Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Word8 Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue ByteString Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue ByteString Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Text Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Text Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue LocalTime Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue TimeOfDay Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Day Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Binary Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Value Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue Smalldatetime Source # 
Instance details

Defined in Database.ODBC.SQLServer

FromValue Datetime2 Source # 
Instance details

Defined in Database.ODBC.SQLServer

FromValue a => FromValue (Maybe a) Source # 
Instance details

Defined in Database.ODBC.Conversion

class FromRow r where Source #

For producing rows from a list of column values.

You can get a row of a single type like Text or a list e.g. [Maybe Value] if you don't know what you're dealing with, or a tuple e.g. (Text, Int, Bool).

Minimal complete definition

fromRow

Methods

fromRow :: [Value] -> Either String r Source #

Instances
FromRow Bool Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Double Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Float Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Int Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Word8 Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow ByteString Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow ByteString Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Text Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Text Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow LocalTime Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow TimeOfDay Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Day Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Binary Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow Value Source # 
Instance details

Defined in Database.ODBC.Conversion

FromRow [Value] Source # 
Instance details

Defined in Database.ODBC.Conversion

FromValue v => FromRow (Maybe v) Source # 
Instance details

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (Maybe v) Source #

FromValue v => FromRow (Identity v) Source # 
Instance details

Defined in Database.ODBC.Conversion

(FromValue a, FromValue b) => FromRow (a, b) Source # 
Instance details

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source #

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

Defined in Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source #

(FromValue a, FromValue b, FromValue c, FromValue d, FromValue e, FromValue f, FromValue g, FromValue h, FromValue i, FromValue j, FromValue k, FromValue l, FromValue m, FromValue n, FromValue o, FromValue p, FromValue q, FromValue r, FromValue s, FromValue t) => FromRow (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 Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source #

(FromValue a, FromValue b, FromValue c, FromValue d, FromValue e, FromValue f, FromValue g, FromValue h, FromValue i, FromValue j, FromValue k, FromValue l, FromValue m, FromValue n, FromValue o, FromValue p, FromValue q, FromValue r, FromValue s, FromValue t, FromValue u) => FromRow (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 Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source #

(FromValue a, FromValue b, FromValue c, FromValue d, FromValue e, FromValue f, FromValue g, FromValue h, FromValue i, FromValue j, FromValue k, FromValue l, FromValue m, FromValue n, FromValue o, FromValue p, FromValue q, FromValue r, FromValue s, FromValue t, FromValue u, FromValue v) => FromRow (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 Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source #

(FromValue a, FromValue b, FromValue c, FromValue d, FromValue e, FromValue f, FromValue g, FromValue h, FromValue i, FromValue j, FromValue k, FromValue l, FromValue m, FromValue n, FromValue o, FromValue p, FromValue q, FromValue r, FromValue s, FromValue t, FromValue u, FromValue v, FromValue w) => FromRow (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 Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source #

(FromValue a, FromValue b, FromValue c, FromValue d, FromValue e, FromValue f, FromValue g, FromValue h, FromValue i, FromValue j, FromValue k, FromValue l, FromValue m, FromValue n, FromValue o, FromValue p, FromValue q, FromValue r, FromValue s, FromValue t, FromValue u, FromValue v, FromValue w, FromValue x) => FromRow (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 Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (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 #

(FromValue a, FromValue b, FromValue c, FromValue d, FromValue e, FromValue f, FromValue g, FromValue h, FromValue i, FromValue j, FromValue k, FromValue l, FromValue m, FromValue n, FromValue o, FromValue p, FromValue q, FromValue r, FromValue s, FromValue t, FromValue u, FromValue v, FromValue w, FromValue x, FromValue y) => FromRow (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 Database.ODBC.Conversion

Methods

fromRow :: [Value] -> Either String (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 #