Database.SQLite.Simple.Function

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

Safe Haskell | None
Language | Haskell2010

Database.SQLite.Simple.Function

# Documentation

class Function a #

Minimal complete definition

argCount, deterministicFn, evalFunction

#### Instances

Instances details

ToField a => Function a # |
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) # |
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) # |
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 :: Function f => Connection -> Text -> f -> IO (Either Error ()) #

deleteFunction :: Connection -> Text -> IO (Either Error ()) #