sqlite-simple-0.4.18.0: Mid-Level SQLite client library
Safe HaskellNone
LanguageHaskell2010

Database.SQLite.Simple.Function

Documentation

class Function a Source #

Minimal complete definition

argCount, deterministicFn, evalFunction

Instances

Instances details
ToField a => Function a Source # 
Instance details

Defined in Database.SQLite.Simple.Function

Methods

argCount :: Proxy a -> Int

deterministicFn :: Proxy a -> Bool

evalFunction :: FuncContext -> FuncArgs -> Int -> a -> IO ()

Function a => Function (IO a) Source # 
Instance details

Defined in Database.SQLite.Simple.Function

Methods

argCount :: Proxy (IO a) -> Int

deterministicFn :: Proxy (IO a) -> Bool

evalFunction :: FuncContext -> FuncArgs -> Int -> IO a -> IO ()

(Function r, FromField f) => Function (f -> r) Source # 
Instance details

Defined in Database.SQLite.Simple.Function

Methods

argCount :: Proxy (f -> r) -> Int

deterministicFn :: Proxy (f -> r) -> Bool

evalFunction :: FuncContext -> FuncArgs -> Int -> (f -> r) -> IO ()

createFunction :: forall f. Function f => Connection -> Text -> f -> IO (Either Error ()) Source #