Database.SQLite.Simple.ToField

sqlite-simple-0.4.19.0: Mid-Level SQLite client library

Copyright | (c) 2011 MailRank Inc. (c) 2011-2012 Leon P Smith (c) 2012-2013 Janne Hellsten
License | BSD3
Maintainer | Janne Hellsten <jjhellst@gmail.com>
Portability | portable
Safe Haskell | None
Language | Haskell2010

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

- class ToField a where
  - toField :: a -> SQLData

# Documentation

class ToField a where #

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

Methods

toField :: a -> SQLData #

Prepare a value for substitution into a query string.

#### Instances

Instances details

ToField ByteString # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: ByteString -> SQLData #
ToField ByteString # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: ByteString -> SQLData #
ToField SQLData # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: SQLData -> SQLData #
ToField Int16 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Int16 -> SQLData #
ToField Int32 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Int32 -> SQLData #
ToField Int64 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Int64 -> SQLData #
ToField Int8 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Int8 -> SQLData #
ToField Word16 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Word16 -> SQLData #
ToField Word32 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Word32 -> SQLData #
ToField Word64 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Word64 -> SQLData #
ToField Word8 # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Word8 -> SQLData #
ToField Null # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Null -> SQLData #
ToField Text # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Text -> SQLData #
ToField Text # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Text -> SQLData #
ToField Day # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Day -> SQLData #
ToField UTCTime # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: UTCTime -> SQLData #
ToField Integer # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Integer -> SQLData #
ToField Bool # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Bool -> SQLData #
ToField Double # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Double -> SQLData #
ToField Float # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Float -> SQLData #
ToField Int # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Int -> SQLData #
ToField Word # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Word -> SQLData #
ToField a => ToField (Maybe a) # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: Maybe a -> SQLData #
ToField [Char] # |
Instance details Defined in Database.SQLite.Simple.ToField Methods toField :: [Char] -> SQLData #