sqlite-simple-0.4.18.2: Mid-Level SQLite client library
Copyright(c) 2011 MailRank Inc.
(c) 2011-2012 Leon P Smith
(c) 2012-2013 Janne Hellsten
LicenseBSD3
MaintainerJanne Hellsten <jjhellst@gmail.com>
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Database.SQLite.Simple.ToField

Description

The ToField typeclass, for rendering a parameter to an SQLite value to be bound as a SQL query parameter.

Synopsis

Documentation

class ToField a where Source #

A type that may be used as a single parameter to a SQL query.

Methods

toField :: a -> SQLData Source #

Prepare a value for substitution into a query string.

Instances

Instances details
ToField Bool Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Bool -> SQLData Source #

ToField Double Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Float Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Int Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Int -> SQLData Source #

ToField Int8 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Int8 -> SQLData Source #

ToField Int16 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Int32 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Int64 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Integer Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Word Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Word -> SQLData Source #

ToField Word8 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Word16 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Word32 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Word64 Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField ByteString Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField ByteString Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Text Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Text -> SQLData Source #

ToField Text Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Text -> SQLData Source #

ToField SQLData Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField UTCTime Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

ToField Day Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Day -> SQLData Source #

ToField Null Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Null -> SQLData Source #

ToField [Char] Source # 
Instance details

Defined in Database.SQLite.Simple.ToField

Methods

toField :: [Char] -> SQLData Source #

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

Defined in Database.SQLite.Simple.ToField

Methods

toField :: Maybe a -> SQLData Source #