sqlite-simple-0.4.14.0: 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.

Minimal complete definition

toField

Methods

toField :: a -> SQLData Source #

Prepare a value for substitution into a query string.

Instances

ToField Bool Source # 

Methods

toField :: Bool -> SQLData Source #

ToField Double Source # 
ToField Float Source # 
ToField Int Source # 

Methods

toField :: Int -> SQLData Source #

ToField Int8 Source # 

Methods

toField :: Int8 -> SQLData Source #

ToField Int16 Source # 
ToField Int32 Source # 
ToField Int64 Source # 
ToField Integer Source # 
ToField Word Source # 

Methods

toField :: Word -> SQLData Source #

ToField Word8 Source # 
ToField Word16 Source # 
ToField Word32 Source # 
ToField Word64 Source # 
ToField ByteString Source # 
ToField ByteString Source # 
ToField Text Source # 

Methods

toField :: Text -> SQLData Source #

ToField Text Source # 

Methods

toField :: Text -> SQLData Source #

ToField SQLData Source # 
ToField UTCTime Source # 
ToField Day Source # 

Methods

toField :: Day -> SQLData Source #

ToField Null Source # 

Methods

toField :: Null -> SQLData Source #

ToField [Char] Source # 

Methods

toField :: [Char] -> SQLData Source #

ToField a => ToField (Maybe a) Source # 

Methods

toField :: Maybe a -> SQLData Source #