periodic-server-1.1.7.1: Periodic task system haskell server

Safe HaskellNone
LanguageHaskell2010

Periodic.Server.Persist

Documentation

class Exception (PersistException db) => Persist db where Source #

Associated Types

data PersistConfig db Source #

data PersistException db Source #

Methods

newPersist :: PersistConfig db -> IO db Source #

member :: db -> State -> FuncName -> JobName -> IO Bool Source #

lookup :: db -> State -> FuncName -> JobName -> IO (Maybe Job) Source #

insert :: db -> State -> FuncName -> JobName -> Job -> IO () Source #

delete :: db -> FuncName -> JobName -> IO () Source #

size :: db -> State -> FuncName -> IO Int64 Source #

foldr :: forall a. db -> State -> (Job -> a -> a) -> a -> IO a Source #

foldrPending :: forall a. db -> Int64 -> [FuncName] -> (Job -> a -> a) -> a -> IO a Source #

foldrLocking :: forall a. db -> Int -> FuncName -> (Job -> a -> a) -> a -> IO a Source #

dumpJob :: db -> IO [Job] Source #

configGet :: db -> String -> IO (Maybe Int) Source #

configSet :: db -> String -> Int -> IO () Source #

insertFuncName :: db -> FuncName -> IO () Source #

removeFuncName :: db -> FuncName -> IO () Source #

funcList :: db -> IO [FuncName] Source #

minSchedAt :: db -> FuncName -> IO Int64 Source #

Instances
Persist PSQL Source # 
Instance details

Defined in Periodic.Server.Persist.PSQL

Associated Types

data PersistConfig PSQL :: Type Source #

data PersistException PSQL :: Type Source #

Persist SQLite Source # 
Instance details

Defined in Periodic.Server.Persist.SQLite

data State Source #

Constructors

Pending 
Running 
Locking