simplest-sqlite-0.1.0.0: Simplest SQLite3 binding

Safe HaskellNone
LanguageHaskell98

Database.SmplstSQLite3

Contents

Synopsis

Functions

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

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

reset :: Stmt -> IO () Source #

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

class SQLiteData a where Source #

Minimal complete definition

bindN, column

Methods

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

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

Instances

SQLiteData Double Source # 

Methods

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

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

SQLiteData Int Source # 

Methods

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

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

SQLiteData () Source # 

Methods

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

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

SQLiteData ByteString Source # 

Methods

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

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

SQLiteData Text Source # 

Methods

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

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

SQLiteDataList a => SQLiteData [a] Source # 

Methods

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

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

class SQLiteDataList a where Source #

Minimal complete definition

bindNList, columnList

Methods

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

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

Instances

Types

data SQLite Source #

Instances

data Stmt Source #

Instances

data Result Source #

Constructors

Busy 
Row 
Done 

Instances

data Type Source #

Constructors

Integer 
Float 
Text 
Blob 
Null 

Instances

Eq Type Source # 

Methods

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

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

Show Type Source # 

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #