simplest-sqlite-0.1.0.0: Simplest SQLite3 binding

Safe HaskellNone
LanguageHaskell98

Database.SmplstSQLite3

Contents

Synopsis

Functions

withSQLite :: String -> (SQLite -> IO a) -> IO a #

withPrepared :: SQLite -> String -> (Stmt -> IO a) -> IO (a, String) #

reset :: Stmt -> IO () #

bind :: SQLiteData a => Stmt -> String -> a -> IO () #

class SQLiteData a where #

Minimal complete definition

bindN, column

Methods

bindN :: Stmt -> Int -> a -> IO () #

column :: Stmt -> Int -> IO a #

Instances
SQLiteData Double # 
Instance details

Defined in Database.SmplstSQLite3

Methods

bindN :: Stmt -> Int -> Double -> IO () #

column :: Stmt -> Int -> IO Double #

SQLiteData Int # 
Instance details

Defined in Database.SmplstSQLite3

Methods

bindN :: Stmt -> Int -> Int -> IO () #

column :: Stmt -> Int -> IO Int #

SQLiteData () # 
Instance details

Defined in Database.SmplstSQLite3

Methods

bindN :: Stmt -> Int -> () -> IO () #

column :: Stmt -> Int -> IO () #

SQLiteData ByteString # 
Instance details

Defined in Database.SmplstSQLite3

Methods

bindN :: Stmt -> Int -> ByteString -> IO () #

column :: Stmt -> Int -> IO ByteString #

SQLiteData Text # 
Instance details

Defined in Database.SmplstSQLite3

Methods

bindN :: Stmt -> Int -> Text -> IO () #

column :: Stmt -> Int -> IO Text #

SQLiteDataList a => SQLiteData [a] # 
Instance details

Defined in Database.SmplstSQLite3

Methods

bindN :: Stmt -> Int -> [a] -> IO () #

column :: Stmt -> Int -> IO [a] #

class SQLiteDataList a where #

Minimal complete definition

bindNList, columnList

Methods

bindNList :: Stmt -> Int -> [a] -> IO () #

columnList :: Stmt -> Int -> IO [a] #

Instances
SQLiteDataList Char # 
Instance details

Defined in Database.SmplstSQLite3

Methods

bindNList :: Stmt -> Int -> [Char] -> IO () #

columnList :: Stmt -> Int -> IO [Char] #

Types

data SQLite #

Instances
Show SQLite # 
Instance details

Defined in Database.SmplstSQLite3

data Stmt #

Instances
Show Stmt # 
Instance details

Defined in Database.SmplstSQLite3

Methods

showsPrec :: Int -> Stmt -> ShowS #

show :: Stmt -> String #

showList :: [Stmt] -> ShowS #

data Result #

Constructors

Busy 
Row 
Done 
Instances
Eq Result # 
Instance details

Defined in Database.SmplstSQLite3

Methods

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

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

Show Result # 
Instance details

Defined in Database.SmplstSQLite3

data Type #

Constructors

Integer 
Float 
Text 
Blob 
Null 
Instances
Eq Type # 
Instance details

Defined in Database.SmplstSQLite3

Methods

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

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

Show Type # 
Instance details

Defined in Database.SmplstSQLite3

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #