DB support module documentation
clusterUIDOfResource :: Resource -> <ReadGraph> ClusterUID
collectClusters :: <Proc> ()
countQueries :: <ReadGraph> Integer
directStatements :: Resource -> Boolean -> <ReadGraph> [Statement]
dumpHeap :: String -> <Proc> ()
emptyTrashBinWithMonitor :: ProgressMonitor -> <Proc> ()
garbageResources :: <ReadGraph> [Resource]
isClusterLoaded :: ClusterUID -> <ReadGraph> Boolean
listClusters :: <ReadGraph> [ClusterUID]
printStack :: () -> <Proc> ()
resourcesByCluster :: ClusterUID -> <ReadGraph> [Resource]
restrictQueries :: Integer -> Integer -> Integer -> <ReadGraph> ()
restrictQueries amount step maxTimeInMs
Collects some DB queries. Tries to reach at maximum 'amount' queries.
Uses at maximum 'maxTimeInMs' milliseconds in 'step' millisecond stints.
setImmutable :: Resource -> Boolean -> <ReadGraph> ()
withServiceMode :: Boolean -> Boolean -> (() -> <b> a) -> <b> a
withServiceMode allowImmutableWrites createAsImmutable fn
runs function fn so that:
- when
allowImmutableWrites is True , fn is allowed to write to immutable clusters
- when
createAsImmutable is True , any new database clusters created by fn will be immutable
|